Create a Local ACE_SOCK datagram. More...
#include <LSOCK_Dgram.h>
Public Member Functions | |
ACE_LSOCK_Dgram (void) | |
Default constructor. | |
ACE_LSOCK_Dgram (const ACE_Addr &local, int protocol_family=PF_UNIX, int protocol=0) | |
Initiate a local dgram. | |
int | open (const ACE_Addr &local, int protocol_family=PF_UNIX, int protocol=0) |
Initiate a local dgram. | |
ACE_HANDLE | get_handle (void) const |
Get handle. | |
void | set_handle (ACE_HANDLE) |
Set handle. | |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. |
Create a Local ACE_SOCK datagram.
Definition at line 36 of file LSOCK_Dgram.h.
ACE_LSOCK_Dgram::ACE_LSOCK_Dgram | ( | void | ) |
Default constructor.
Definition at line 33 of file LSOCK_Dgram.cpp.
{ ACE_TRACE ("ACE_LSOCK_Dgram::ACE_LSOCK_Dgram"); }
ACE_LSOCK_Dgram::ACE_LSOCK_Dgram | ( | const ACE_Addr & | local, | |
int | protocol_family = PF_UNIX , |
|||
int | protocol = 0 | |||
) |
void ACE_LSOCK_Dgram::dump | ( | void | ) | const |
Dump the state of an object.
Reimplemented from ACE_LSOCK.
Definition at line 19 of file LSOCK_Dgram.cpp.
{ #if defined (ACE_HAS_DUMP) ACE_TRACE ("ACE_LSOCK_Dgram::dump"); ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); ACE_SOCK_Dgram::dump (); ACE_LSOCK::dump (); ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); #endif /* ACE_HAS_DUMP */ }
ACE_HANDLE ACE_LSOCK_Dgram::get_handle | ( | void | ) | const [inline] |
Get handle.
Reimplemented from ACE_LSOCK.
Definition at line 16 of file LSOCK_Dgram.inl.
{ ACE_TRACE ("ACE_LSOCK_Dgram::get_handle"); return this->ACE_SOCK_Dgram::get_handle (); }
int ACE_LSOCK_Dgram::open | ( | const ACE_Addr & | local, | |
int | protocol_family = PF_UNIX , |
|||
int | protocol = 0 | |||
) |
Initiate a local dgram.
Definition at line 41 of file LSOCK_Dgram.cpp.
{ ACE_TRACE ("ACE_LSOCK_Dgram::open"); if (ACE_SOCK_Dgram::open (local, protocol_family, protocol) == -1) return -1; ACE_LSOCK::set_handle (this->ACE_SOCK_Dgram::get_handle ()); return 0; }
void ACE_LSOCK_Dgram::set_handle | ( | ACE_HANDLE | h | ) | [inline] |
Set handle.
Reimplemented from ACE_LSOCK.
Definition at line 8 of file LSOCK_Dgram.inl.
{ ACE_TRACE ("ACE_LSOCK_Dgram::set_handle"); this->ACE_SOCK_Dgram::set_handle (h); this->ACE_LSOCK::set_handle (h); }
Declare the dynamic allocation hooks.
Reimplemented from ACE_LSOCK.
Definition at line 63 of file LSOCK_Dgram.h.