Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / ATM_Addr.inl
blob5d0b8faae9cf651aa0d7b321b545a3316bd1b85a
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE u_char
5 ACE_ATM_Addr::get_selector () const
7   ACE_TRACE ("ACE_ATM_Addr::get_selector");
8 #if defined (ACE_HAS_FORE_ATM_XTI)
9   return atm_addr_.sap.t_atm_sap_addr.address[ATMNSAP_ADDR_LEN - 1];
10 #elif defined (ACE_HAS_FORE_ATM_WS2)
11   return atm_addr_.satm_number.Addr[ ATM_ADDR_SIZE - 1 ];
12 #elif defined (ACE_HAS_LINUX_ATM)
13   return atm_addr_.sockaddratmsvc.sas_addr.prv[ATM_ESA_LEN - 1];
14 #else
15   return 0;
16 #endif /* ACE_HAS_FORE_ATM_XTI || ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM */
19 ACE_INLINE void
20 ACE_ATM_Addr::set_selector (u_char selector)
22   ACE_TRACE ("ACE_ATM_Addr::set_selector");
23 #if defined (ACE_HAS_FORE_ATM_XTI)
24   atm_addr_.sap.t_atm_sap_addr.address[ATMNSAP_ADDR_LEN - 1] = selector;
25 #elif defined (ACE_HAS_FORE_ATM_WS2)
26   atm_addr_.satm_number.Addr[ ATM_ADDR_SIZE - 1 ] = selector;
27 #elif defined (ACE_HAS_LINUX_ATM)
28   atm_addr_.sockaddratmsvc.sas_addr.prv[ATM_ESA_LEN - 1] = selector;
29 #else
30   ACE_UNUSED_ARG (selector);
31 #endif /* ACE_HAS_FORE_ATM_XTI || ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM */
34 ACE_END_VERSIONED_NAMESPACE_DECL