Defines the format and interface for the acceptor side of the local mmap stream.
More...
Public Member Functions |
| ACE_MEM_Acceptor (void) |
| Default constructor.
|
| ~ACE_MEM_Acceptor (void) |
| Destructor.
|
| ACE_MEM_Acceptor (const ACE_MEM_Addr &remote_sap, int reuse_addr=0, int backlog=ACE_DEFAULT_BACKLOG, int protocol=0) |
| Initiate a passive mode socket.
|
int | open (const ACE_MEM_Addr &local_sap, int reuse_addr=0, int backlog=ACE_DEFAULT_BACKLOG, int protocol=0) |
int | accept (ACE_MEM_Stream &new_ipc_sap, ACE_MEM_Addr *remote_addr=0, ACE_Time_Value *timeout=0, bool restart=true, bool reset_new_handle=false) |
| Accept a new data transfer connection.
|
int | shared_accept_finish (ACE_MEM_Stream new_stream, int in_blocking_mode, bool reset_new_handle) const |
const ACE_TCHAR * | mmap_prefix (void) const |
void | mmap_prefix (const ACE_TCHAR *prefix) |
void | init_buffer_size (ACE_OFF_T bytes) |
ACE_MEM_IO::Signal_Strategy | preferred_strategy (void) const |
| Get the preferred signaling strategy.
|
void | preferred_strategy (ACE_MEM_IO::Signal_Strategy strategy) |
| Set the preferred signaling strategy.
|
int | get_local_addr (ACE_MEM_Addr &) const |
void | dump (void) const |
| Dump the state of an object.
|
| ACE_SOCK_Acceptor (void) |
| Default constructor.
|
| ACE_SOCK_Acceptor (const ACE_Addr &local_sap, int reuse_addr=0, int protocol_family=PF_UNSPEC, int backlog=ACE_DEFAULT_BACKLOG, int protocol=0) |
| ACE_SOCK_Acceptor (const ACE_Addr &local_sap, ACE_Protocol_Info *protocolinfo, ACE_SOCK_GROUP g, u_long flags, int reuse_addr, int protocol_family=PF_UNSPEC, int backlog=ACE_DEFAULT_BACKLOG, int protocol=0) |
int | close (void) |
| Close the socket. Returns 0 on success and -1 on failure.
|
| ~ACE_SOCK_Acceptor (void) |
| Default dtor.
|
int | set_option (int level, int option, void *optval, int optlen) const |
| Wrapper around the setsockopt system call.
|
int | get_option (int level, int option, void *optval, int *optlen) const |
| Wrapper around the getsockopt system call.
|
int | get_local_addr (ACE_Addr &) const |
int | open (int type, int protocol_family, int protocol, int reuse_addr) |
| Wrapper around the BSD-style socket system call (no QoS).
|
int | open (int type, int protocol_family, int protocol, ACE_Protocol_Info *protocolinfo, ACE_SOCK_GROUP g, u_long flags, int reuse_addr) |
| Wrapper around the QoS-enabled WSASocket function.
|
int | control (int cmd, void *) const |
| Interface for <ioctl>.
|
int | enable (int value) const |
int | disable (int value) const |
ACE_HANDLE | get_handle (void) const |
| Get the underlying handle.
|
void | set_handle (ACE_HANDLE handle) |
| Set the underlying handle.
|
Protected Member Functions |
int | open (const ACE_Addr &local_sap, int reuse_addr=0, int protocol_family=PF_INET, int backlog=ACE_DEFAULT_BACKLOG, int protocol=0) |
int | open (const ACE_Addr &local_sap, ACE_Protocol_Info *protocolinfo, ACE_SOCK_GROUP g, u_long flags, int reuse_addr, int protocol_family, int backlog=ACE_DEFAULT_BACKLOG, int protocol=0) |
int | accept (ACE_SOCK_Stream &new_stream, ACE_Addr *remote_addr=0, ACE_Time_Value *timeout=0, bool restart=true, bool reset_new_handle=false) const |
int | accept (ACE_SOCK_Stream &new_stream, ACE_Accept_QoS_Params qos_params, ACE_Addr *remote_addr=0, ACE_Time_Value *timeout=0, bool restart=true, bool reset_new_handle=false) const |
int | shared_accept_start (ACE_Time_Value *timeout, bool restart, int &in_blocking_mode) const |
int | shared_accept_finish (ACE_SOCK_Stream new_stream, int in_blocking_mode, bool reset_new_handle) const |
int | shared_open (const ACE_Addr &local_sap, int protocol_family, int backlog) |
| ACE_SOCK (int type, int protocol_family, int protocol=0, int reuse_addr=0) |
| ACE_SOCK (int type, int protocol_family, int protocol, ACE_Protocol_Info *protocolinfo, ACE_SOCK_GROUP g, u_long flags, int reuse_addr) |
| ACE_SOCK (void) |
| ~ACE_SOCK (void) |
| Protected destructor.
|
| ACE_IPC_SAP (void) |
| Default constructor.
|
| ~ACE_IPC_SAP (void) |
| Protected destructor.
|
Defines the format and interface for the acceptor side of the local mmap stream.
This class should be modified to prevent user passing a non-localhost endpoint as the acceptor listen point because it doesn't make any sense at all to make the listening endpoint visible (or connectable) anywhere outside of this machine. However, the type of endpoint is left as <ACE_Addr> so we can later changed to use UNIX-domain sockets with mmap stream if so desired. (Currently, using UNIX-domain sockets, i.e., ACE_LSOCK_*, with this class will not work.)
Accept a new ACE_SOCK_Stream connection. A timeout of 0 means block forever, a timeout of {0, 0} means poll. restart == true means "restart if interrupted," i.e., if errno == EINTR. Note that new_stream inherits the "blocking mode" of this
ACE_SOCK_Acceptor, i.e., if this
acceptor factory is in non-blocking mode, the new_stream will be in non-blocking mode and vice versa.
Reimplemented from ACE_SOCK_Acceptor.
Accept a new ACE_SOCK_Stream connection using the QoS information in qos_params. A timeout of 0 means block forever, a timeout of {0, 0} means poll. restart == true means "restart if interrupted," i.e., if errno == EINTR. Note that new_stream inherits the "blocking mode" of this
ACE_SOCK_Acceptor, i.e., if this
acceptor factory is in non-blocking mode, the new_stream will be in non-blocking mode and vice versa.
Reimplemented from ACE_SOCK_Acceptor.