ACE
6.1.6
|
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. | |
![]() | |
ACE_SPIPE_Acceptor (void) | |
Default constructor. | |
ACE_SPIPE_Acceptor (const ACE_SPIPE_Addr &local_sap, int reuse_addr=1, int perms=ACE_DEFAULT_FILE_PERMS, LPSECURITY_ATTRIBUTES sa=0, int pipe_mode=PIPE_TYPE_MESSAGE|PIPE_READMODE_MESSAGE) | |
Initiate a passive-mode STREAM pipe listener. | |
int | open (const ACE_SPIPE_Addr &local_sap, int reuse_addr=1, int perms=ACE_DEFAULT_FILE_PERMS, LPSECURITY_ATTRIBUTES sa=0, int pipe_mode=PIPE_TYPE_MESSAGE|PIPE_READMODE_MESSAGE) |
Initiate a passive-mode STREAM pipe listener. | |
int | accept (ACE_SPIPE_Stream &ipc_sap_spipe, ACE_SPIPE_Addr *remote_addr=0, ACE_Time_Value *timeout=0, bool restart=true, bool reset_new_handle=false) |
![]() | |
int | get_local_addr (ACE_SPIPE_Addr &) const |
Return the local address of this endpoint. | |
int | disable (int signum) const |
![]() | |
int | control (int cmd, void *) const |
Interface for <ioctl>. | |
int | enable (int value) const |
ACE_HANDLE | get_handle (void) const |
Get the underlying handle. | |
void | set_handle (ACE_HANDLE handle) |
Set the underlying handle. |
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. |
Additional Inherited Members | |
![]() | |
typedef ACE_SPIPE_Addr | PEER_ADDR |
typedef ACE_SPIPE_Stream | PEER_STREAM |
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.
|
inline |
Close down and release resources and remove the underlying SPIPE rendezvous point.
Reimplemented from ACE_SPIPE_Acceptor.
ACE_UPIPE_Acceptor::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
Reimplemented from ACE_SPIPE_Acceptor.
|
private |
To confirm connection establishment.
|
private |
Manage threads.