Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ATM_Addr.i

Go to the documentation of this file.
00001 // $Id: ATM_Addr.i,v 1.1.1.4 2003/02/21 18:36:32 chad Exp $
00002 
00003 // ATM_Addr.i
00004 
00005 // Default dtor.
00006 ACE_INLINE
00007 ACE_ATM_Addr::~ACE_ATM_Addr (void)
00008 {
00009 }
00010 
00011 // Return the address.
00012 
00013 ACE_INLINE void *
00014 ACE_ATM_Addr::get_addr (void) const
00015 {
00016   ACE_TRACE ("ACE_ATM_Addr::get_addr");
00017   return (void *) &this->atm_addr_;
00018 }
00019 
00020 ACE_INLINE u_char
00021 ACE_ATM_Addr::get_selector (void) const
00022 {
00023   ACE_TRACE ("ACE_ATM_Addr::get_selector");
00024 #if defined (ACE_HAS_FORE_ATM_XTI)
00025   return atm_addr_.sap.t_atm_sap_addr.address[ATMNSAP_ADDR_LEN - 1];
00026 #elif defined (ACE_HAS_FORE_ATM_WS2)
00027   return atm_addr_.satm_number.Addr[ ATM_ADDR_SIZE - 1 ];
00028 #elif defined (ACE_HAS_LINUX_ATM)
00029   return atm_addr_.sockaddratmsvc.sas_addr.prv[ATM_ESA_LEN - 1];
00030 #else
00031   return 0;
00032 #endif /* ACE_HAS_FORE_ATM_XTI || ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM */
00033 }
00034 
00035 ACE_INLINE void
00036 ACE_ATM_Addr::set_selector (u_char selector)
00037 {
00038   ACE_TRACE ("ACE_ATM_Addr::set_selector");
00039 #if defined (ACE_HAS_FORE_ATM_XTI)
00040   atm_addr_.sap.t_atm_sap_addr.address[ATMNSAP_ADDR_LEN - 1] = selector;
00041 #elif defined (ACE_HAS_FORE_ATM_WS2)
00042   atm_addr_.satm_number.Addr[ ATM_ADDR_SIZE - 1 ] = selector;
00043 #elif defined (ACE_HAS_LINUX_ATM)
00044   atm_addr_.sockaddratmsvc.sas_addr.prv[ATM_ESA_LEN - 1] = selector;
00045 #else
00046   ACE_UNUSED_ARG (selector);
00047 #endif /* ACE_HAS_FORE_ATM_XTI || ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM */
00048 }
00049 

Generated on Mon Jun 16 11:19:08 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002