#include <Strategies_T.h>
Inheritance diagram for ACE_Accept_Strategy:


Public Types | |
| typedef ACE_PEER_ACCEPTOR_ADDR | addr_type |
| typedef ACE_PEER_ACCEPTOR | acceptor_type |
| typedef SVC_HANDLER | handler_type |
| typedef ACE_TYPENAME SVC_HANDLER::stream_type | stream_type |
Public Methods | |
| ACE_Accept_Strategy (ACE_Reactor *reactor=ACE_Reactor::instance()) | |
| Default constructor. More... | |
| 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>. More... | |
| virtual int | open (const ACE_PEER_ACCEPTOR_ADDR &local_addr, int reuse_addr=0) |
| Initialize the <peer_acceptor_> with <local_addr>, indicating whether to <reuse_addr> if it's already in use. More... | |
| virtual ACE_HANDLE | get_handle (void) const |
| Return the underlying ACE_HANDLE of the <peer_acceptor_>. More... | |
| virtual ACE_PEER_ACCEPTOR & | acceptor (void) const |
| Return a reference to the <peer_acceptor_>. More... | |
| virtual | ~ACE_Accept_Strategy (void) |
| virtual int | accept_svc_handler (SVC_HANDLER *) |
| The default behavior delegates to the <accept> method of the PEER_ACCEPTOR. More... | |
| void | dump (void) const |
| Dump the state of an object. More... | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Protected Attributes | |
| ACE_PEER_ACCEPTOR | peer_acceptor_ |
| Factory that establishes connections passively. More... | |
| ACE_Reactor * | reactor_ |
| Pointer to the reactor used by the Acceptor. More... | |
| int | reuse_addr_ |
| Needed to reopen the socket if <accept> fails. More... | |
| ACE_PEER_ACCEPTOR_ADDR | peer_acceptor_addr_ |
| Needed to reopen the socket if <accept> fails. More... | |
This class provides a strategy that manages passive connection acceptance of a client.
Definition at line 494 of file Strategies_T.h.
|
|||||
|
Definition at line 500 of file Strategies_T.h. |
|
|||||
|
Definition at line 499 of file Strategies_T.h. |
|
|||||
|
Definition at line 501 of file Strategies_T.h. |
|
|||||
|
Definition at line 502 of file Strategies_T.h. |
|
||||||||||
|
Default constructor.
|
|
||||||||||||||||||||
|
Initialize the <peer_acceptor_> with <local_addr>.
|
|
||||||||||
|
|
|
||||||||||
|
The default behavior delegates to the <accept> method of the PEER_ACCEPTOR.
|
|
||||||||||
|
Return a reference to the <peer_acceptor_>.
|
|
||||||||||
|
Dump the state of an object.
|
|
||||||||||
|
Return the underlying ACE_HANDLE of the <peer_acceptor_>.
|
|
||||||||||||||||
|
Initialize the <peer_acceptor_> with <local_addr>, indicating whether to <reuse_addr> if it's already in use.
|
|
|||||
|
Declare the dynamic allocation hooks.
Definition at line 535 of file Strategies_T.h. |
|
|||||
|
Factory that establishes connections passively.
Definition at line 539 of file Strategies_T.h. Referenced by ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::acceptor, ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::get_handle, and ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::~ACE_Accept_Strategy. |
|
|||||
|
Needed to reopen the socket if <accept> fails.
Definition at line 548 of file Strategies_T.h. |
|
|||||
|
Pointer to the reactor used by the Acceptor.
Definition at line 542 of file Strategies_T.h. |
|
|||||
|
Needed to reopen the socket if <accept> fails.
Definition at line 545 of file Strategies_T.h. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002