#include <Strategies_T.h>
Collaboration diagram for ACE_Accept_Strategy< SVC_HANDLER, >:
Public Types | |
typedef ACE_PEER_ACCEPTOR_ADDR | addr_type |
typedef ACE_PEER_ACCEPTOR | acceptor_type |
typedef SVC_HANDLER | handler_type |
typedef SVC_HANDLER::stream_type | stream_type |
Public Member Functions | |
ACE_Accept_Strategy (ACE_Reactor *reactor=ACE_Reactor::instance()) | |
Default constructor. | |
ACE_Accept_Strategy (const ACE_PEER_ACCEPTOR_ADDR &local_addr, int restart=0, ACE_Reactor *reactor=ACE_Reactor::instance()) | |
Initialize the peer_acceptor_ with local_addr. | |
virtual int | open (const ACE_PEER_ACCEPTOR_ADDR &local_addr, int reuse_addr=0) |
virtual ACE_HANDLE | get_handle (void) const |
Return the underlying ACE_HANDLE of the . | |
virtual ACE_PEER_ACCEPTOR & | acceptor (void) const |
Return a reference to the . | |
virtual | ~ACE_Accept_Strategy (void) |
virtual int | accept_svc_handler (SVC_HANDLER *) |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Protected Attributes | |
ACE_PEER_ACCEPTOR | peer_acceptor_ |
Factory that establishes connections passively. | |
ACE_Reactor * | reactor_ |
Pointer to the reactor used by the Acceptor. | |
int | reuse_addr_ |
Needed to reopen the socket if fails. | |
ACE_PEER_ACCEPTOR_ADDR | peer_acceptor_addr_ |
Needed to reopen the socket if fails. |
This class provides a strategy that manages passive connection acceptance of a client.
Definition at line 498 of file Strategies_T.h.
|
Definition at line 504 of file Strategies_T.h. |
|
Definition at line 503 of file Strategies_T.h. |
|
Definition at line 505 of file Strategies_T.h. |
|
Definition at line 506 of file Strategies_T.h. |
|
Default constructor.
|
|
Initialize the
|
|
|
|
The default behavior delegates to the method of the PEER_ACCEPTOR. |
|
Return a reference to the .
Referenced by ACE_Strategy_Acceptor< SVC_HANDLER, >::acceptor(), and ACE_Strategy_Acceptor< SVC_HANDLER, >::operator ACE_PEER_ACCEPTOR &(). |
|
Dump the state of an object.
Referenced by ACE_Strategy_Acceptor< SVC_HANDLER, >::dump(). |
|
Return the underlying ACE_HANDLE of the .
Referenced by ACE_Strategy_Acceptor< SVC_HANDLER, >::get_handle(). |
|
Initialize the with local_addr, indicating whether to reuse_addr if it's already in use. |
|
Declare the dynamic allocation hooks.
Definition at line 539 of file Strategies_T.h. |
|
Factory that establishes connections passively.
Definition at line 543 of file Strategies_T.h. |
|
Needed to reopen the socket if fails.
Definition at line 552 of file Strategies_T.h. |
|
Pointer to the reactor used by the Acceptor.
Definition at line 546 of file Strategies_T.h. |
|
Needed to reopen the socket if fails.
Definition at line 549 of file Strategies_T.h. |