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

ACE_SDM_helpers Class Reference

List of all members.

Static Public Methods

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 28 of file SOCK_Dgram_Mcast.cpp.

References ACE_LIB_TEXT, ACE_TCHAR, ACE_OS_String::strchr, and ACE_OS_String::strcpy.

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

00032     {
00033       if (ip_addr.addr_to_string (ret_string, len, 1) == -1)
00034         {
00035           ACE_OS_String::strcpy (ret_string, ACE_LIB_TEXT ("<?>"));
00036         }
00037       else
00038         {
00039           ACE_TCHAR *pc;
00040           if (clip_portnum
00041               && (pc = ACE_OS_String::strchr (ret_string, ACE_LIB_TEXT (':'))))
00042             *pc = ACE_LIB_TEXT ('\0'); // clip port# info.
00043         }
00044     }

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

Definition at line 46 of file SOCK_Dgram_Mcast.cpp.

References ip_mreq::imr_interface.

Referenced by ACE_SOCK_Dgram_Mcast::leave.

00047       {
00048         return m1.IMR_MULTIADDR.s_addr == m2.IMR_MULTIADDR.s_addr
00049           && m1.imr_interface.s_addr == m2.imr_interface.s_addr;
00050       }


The documentation for this class was generated from the following file:
Generated on Mon Jun 16 12:55:35 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002