ACE_Accept_Strategy< SVC_HANDLER, > Class Template ReferenceDefines the interface for specifying a passive connection acceptance strategy for a SVC_HANDLER. More...
Collaboration diagram for ACE_Accept_Strategy< SVC_HANDLER, >:
![]()
Detailed Descriptiontemplate<class SVC_HANDLER, ACE_PEER_ACCEPTOR_1>
Defines the interface for specifying a passive connection acceptance strategy for a SVC_HANDLER.
|
typedef ACE_PEER_ACCEPTOR_ADDR ACE_Accept_Strategy< SVC_HANDLER, >::addr_type |
typedef ACE_PEER_ACCEPTOR ACE_Accept_Strategy< SVC_HANDLER, >::acceptor_type |
typedef SVC_HANDLER ACE_Accept_Strategy< SVC_HANDLER, >::handler_type |
typedef SVC_HANDLER::stream_type ACE_Accept_Strategy< SVC_HANDLER, >::stream_type |
ACE_INLINE ACE_Accept_Strategy< SVC_HANDLER, >::ACE_Accept_Strategy | ( | ACE_Reactor * | reactor = ACE_Reactor::instance () |
) | [inline] |
Default constructor.
ACE_Accept_Strategy< SVC_HANDLER, >::ACE_Accept_Strategy | ( | const ACE_PEER_ACCEPTOR_ADDR & | local_addr, | |
int | restart = 0 , |
|||
ACE_Reactor * | reactor = ACE_Reactor::instance () | |||
) | [inline] |
Initialize the peer_acceptor_
with local_addr.
ACE_Accept_Strategy< SVC_HANDLER, >::~ACE_Accept_Strategy | ( | void | ) | [inline, virtual] |
int ACE_Accept_Strategy< SVC_HANDLER, >::open | ( | const ACE_PEER_ACCEPTOR_ADDR & | local_addr, | |
int | reuse_addr = 0 | |||
) | [inline, virtual] |
Initialize the <peer_acceptor_> with local_addr, indicating whether to reuse_addr if it's already in use.
ACE_HANDLE ACE_Accept_Strategy< SVC_HANDLER, >::get_handle | ( | void | ) | const [inline, virtual] |
Return the underlying ACE_HANDLE of the <peer_acceptor_>.
ACE_PEER_ACCEPTOR & ACE_Accept_Strategy< SVC_HANDLER, >::acceptor | ( | void | ) | const [inline, virtual] |
Return a reference to the <peer_acceptor_>.
int ACE_Accept_Strategy< SVC_HANDLER, >::accept_svc_handler | ( | SVC_HANDLER * | svc_handler | ) | [inline, virtual] |
The default behavior delegates to the <accept> method of the PEER_ACCEPTOR.
void ACE_Accept_Strategy< SVC_HANDLER, >::dump | ( | void | ) | const [inline] |
Dump the state of an object.
ACE_Accept_Strategy< SVC_HANDLER, >::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
ACE_PEER_ACCEPTOR ACE_Accept_Strategy< SVC_HANDLER, >::peer_acceptor_ [protected] |
Factory that establishes connections passively.
ACE_Reactor* ACE_Accept_Strategy< SVC_HANDLER, >::reactor_ [protected] |
Pointer to the reactor used by the Acceptor.
int ACE_Accept_Strategy< SVC_HANDLER, >::reuse_addr_ [protected] |
Needed to reopen the socket if <accept> fails.
ACE_PEER_ACCEPTOR_ADDR ACE_Accept_Strategy< SVC_HANDLER, >::peer_acceptor_addr_ [protected] |
Needed to reopen the socket if <accept> fails.