ACE
6.1.0
|
Defines the format and interface for the listener side of the ACE_UPIPE_Stream. More...
#include <UPIPE_Acceptor.h>
Public Member Functions | |
ACE_UPIPE_Acceptor (void) | |
Default constructor. | |
ACE_UPIPE_Acceptor (const ACE_UPIPE_Addr &local_sap, int reuse_addr=0) | |
Initialize passive endpoint. | |
int | open (const ACE_UPIPE_Addr &local_sap, int reuse_addr=0) |
Initialize passive endpoint. | |
~ACE_UPIPE_Acceptor (void) | |
Close down and release resources. | |
int | close (void) |
Close down and release resources. | |
int | remove (void) |
int | accept (ACE_UPIPE_Stream &server_stream, ACE_UPIPE_Addr *remote_addr=0, ACE_Time_Value *timeout=0, bool restart=true, bool reset_new_handle=false) |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Private Attributes | |
ACE_Thread_Manager | tm |
Manage threads. | |
ACE_Message_Block | mb_ |
To confirm connection establishment. |
Defines the format and interface for the listener side of the ACE_UPIPE_Stream.
ACE_UPIPE_Acceptor::ACE_UPIPE_Acceptor | ( | void | ) |
Default constructor.
ACE_UPIPE_Acceptor::ACE_UPIPE_Acceptor | ( | const ACE_UPIPE_Addr & | local_sap, |
int | reuse_addr = 0 |
||
) |
Initialize passive endpoint.
ACE_UPIPE_Acceptor::~ACE_UPIPE_Acceptor | ( | void | ) |
Close down and release resources.
int ACE_UPIPE_Acceptor::accept | ( | ACE_UPIPE_Stream & | server_stream, |
ACE_UPIPE_Addr * | remote_addr = 0 , |
||
ACE_Time_Value * | timeout = 0 , |
||
bool | restart = true , |
||
bool | reset_new_handle = false |
||
) |
Accept a new data transfer connection. A timeout of 0 means block forever, a timeout of {0, 0} means poll. restart == 1 means "restart if interrupted."
int ACE_UPIPE_Acceptor::close | ( | void | ) |
Close down and release resources.
Reimplemented from ACE_SPIPE_Acceptor.
void ACE_UPIPE_Acceptor::dump | ( | void | ) | const |
Dump the state of an object.
Reimplemented from ACE_SPIPE_Acceptor.
int ACE_UPIPE_Acceptor::open | ( | const ACE_UPIPE_Addr & | local_sap, |
int | reuse_addr = 0 |
||
) |
Initialize passive endpoint.
int ACE_UPIPE_Acceptor::remove | ( | void | ) | [inline] |
Close down and release resources and remove the underlying SPIPE rendezvous point.
Reimplemented from ACE_SPIPE_Acceptor.
Declare the dynamic allocation hooks.
Reimplemented from ACE_SPIPE_Acceptor.
ACE_Message_Block ACE_UPIPE_Acceptor::mb_ [private] |
To confirm connection establishment.
ACE_Thread_Manager ACE_UPIPE_Acceptor::tm [private] |
Manage threads.