Static Public Member Functions | |
static void | addr_to_string (const ACE_INET_Addr &ip_addr, ACE_TCHAR *ret_string, size_t len, int clip_portnum) |
static int | is_equal (const ip_mreq &m1, const ip_mreq &m2) |
Definition at line 38 of file SOCK_Dgram_Mcast.cpp.
static 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_TEXT, 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_TEXT ("<?>")); 00050 else 00051 { 00052 ACE_TCHAR *pc = ACE_OS::strrchr (ret_string, ACE_TEXT (':')); 00053 if (clip_portnum && pc) 00054 *pc = ACE_TEXT ('\0'); // clip port# info. 00055 } 00056 }
static 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 }