ACE_SDM_helpers Class Reference

List of all members.

Static Public Member Functions

void addr_to_string (const ACE_INET_Addr &ip_addr, ACE_TCHAR *ret_string, size_t len, int clip_portnum)
int is_equal (const ip_mreq &m1, const ip_mreq &m2)

Member Function Documentation

void ACE_SDM_helpers::addr_to_string const ACE_INET_Addr ip_addr,
ACE_TCHAR ret_string,
size_t  len,
int  clip_portnum
[inline, static]
 

Definition at line 43 of file SOCK_Dgram_Mcast.cpp.

References ACE_LIB_TEXT, ACE_TCHAR, ACE_INET_Addr::addr_to_string(), ACE_OS::strcpy(), and ACE_OS::strrchr().

Referenced by ACE_SOCK_Dgram_Mcast::dump(), and ACE_SOCK_Dgram_Mcast::join().

00047     {
00048       if (ip_addr.addr_to_string (ret_string, len, 1) == -1)
00049         ACE_OS::strcpy (ret_string, ACE_LIB_TEXT ("<?>"));
00050       else
00051         {
00052           ACE_TCHAR *pc = ACE_OS::strrchr (ret_string, ACE_LIB_TEXT (':'));
00053           if (clip_portnum && pc)
00054             *pc = ACE_LIB_TEXT ('\0'); // clip port# info.
00055         }
00056     }

int ACE_SDM_helpers::is_equal const ip_mreq &  m1,
const ip_mreq &  m2
[inline, static]
 

Definition at line 58 of file SOCK_Dgram_Mcast.cpp.

Referenced by ACE_SOCK_Dgram_Mcast::leave().

00059       {
00060         return m1.IMR_MULTIADDR.s_addr == m2.IMR_MULTIADDR.s_addr
00061           && m1.imr_interface.s_addr == m2.imr_interface.s_addr;
00062       }


The documentation for this class was generated from the following file:
Generated on Thu Nov 9 11:28:32 2006 for ACE by doxygen 1.3.6