ACE 8.0.0
|
Specialize ACE_SOCK_Acceptor to lock around <accept>;. More...
#include <LOCK_SOCK_Acceptor.h>
Protected Attributes | |
ACE_LOCK | lock_ |
Type of locking mechanism. | |
Additional Inherited Members | |
![]() | |
typedef ACE_INET_Addr | PEER_ADDR |
typedef ACE_SOCK_Stream | PEER_STREAM |
![]() | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
![]() | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
![]() | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
![]() | |
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, int ipv6_only) |
![]() | |
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 () | |
~ACE_SOCK ()=default | |
Protected destructor. | |
![]() | |
ACE_IPC_SAP () | |
Default constructor. | |
~ACE_IPC_SAP () | |
Protected destructor. | |
Specialize ACE_SOCK_Acceptor to lock around <accept>;.
This class is necessary since some OS platforms do not allow multiple threads/processes to simultaneously call accept
on the same listen-mode port/socket. Thus, we need to protect against multiple concurrent accesses by using the appropriate type of lock.
int ACE_LOCK_SOCK_Acceptor< ACE_LOCK >::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 |
Accept the connection under the control of the <ACE_LOCK>.
ACE_LOCK & ACE_LOCK_SOCK_Acceptor< ACE_LOCK >::lock | ( | ) |
Return a reference to the lock.
|
protected |
Type of locking mechanism.