Defines the member functions for ACE_ATM_Acceptor abstraction. More...
#include <ATM_Acceptor.h>
Public Types | |
| typedef ACE_ATM_Addr | PEER_ADDR |
| typedef ACE_ATM_Stream | PEER_STREAM |
Public Member Functions | |
| ACE_ATM_Acceptor (void) | |
| Default constructor. | |
| ~ACE_ATM_Acceptor () | |
| ACE_ATM_Acceptor (const ACE_Addr &remote_sap, int backlog=ACE_DEFAULT_BACKLOG, ACE_ATM_Params params=ACE_ATM_Params()) | |
| Initiate a passive mode connection. | |
| ACE_HANDLE | open (const ACE_Addr &remote_sap, int backlog=ACE_DEFAULT_BACKLOG, ACE_ATM_Params params=ACE_ATM_Params()) |
| Initiate a passive mode socket. | |
| int | close (void) |
| Close down the acceptor and release resources. | |
| int | accept (ACE_ATM_Stream &new_sap, ACE_Addr *remote_addr=0, ACE_Time_Value *timeout=0, bool restart=true, bool reset_new_handle=false, ACE_ATM_Params params=ACE_ATM_Params(), ACE_ATM_QoS qos=ACE_ATM_QoS()) |
| int | get_local_addr (ACE_ATM_Addr &local_addr) |
| Get the local address currently listening on. | |
| void | dump (void) const |
| Dump the state of an object. | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. | |
Private Attributes | |
| ATM_Acceptor | acceptor_ |
Defines the member functions for ACE_ATM_Acceptor abstraction.
This class wraps up the ACE_SOCK_Acceptor and ACE_TLI_Acceptor to make the mechanism for the ATM protocol transparent.
Definition at line 60 of file ATM_Acceptor.h.
Definition at line 100 of file ATM_Acceptor.h.
Definition at line 101 of file ATM_Acceptor.h.
| ACE_ATM_Acceptor::ACE_ATM_Acceptor | ( | void | ) |
Default constructor.
| ACE_ATM_Acceptor::~ACE_ATM_Acceptor | ( | ) |
| ACE_ATM_Acceptor::ACE_ATM_Acceptor | ( | const ACE_Addr & | remote_sap, | |
| int | backlog = ACE_DEFAULT_BACKLOG, |
|||
| ACE_ATM_Params | params = ACE_ATM_Params() | |||
| ) |
Initiate a passive mode connection.
Definition at line 17 of file ATM_Acceptor.inl.
00020 { 00021 ACE_TRACE ("ACE_ATM_Acceptor::ACE_ATM_Acceptor"); 00022 00023 //FUZZ: disable check_for_lack_ACE_OS 00024 if (open (remote_sap, backlog, params) < 0) 00025 //FUZZ: enable check_for_lack_ACE_OS 00026 ACE_ERROR ((LM_ERROR, 00027 ACE_TEXT ("%p\n"), 00028 ACE_TEXT ("ACE_ATM_Acceptor::ACE_ATM_Acceptor"))); 00029 }
| int ACE_ATM_Acceptor::accept | ( | ACE_ATM_Stream & | new_sap, | |
| ACE_Addr * | remote_addr = 0, |
|||
| ACE_Time_Value * | timeout = 0, |
|||
| bool | restart = true, |
|||
| bool | reset_new_handle = false, |
|||
| ACE_ATM_Params | params = ACE_ATM_Params(), |
|||
| ACE_ATM_QoS | qos = ACE_ATM_QoS() | |||
| ) |
Accept a new data transfer connection. A timeout of 0 means block forever, a timeout of {0, 0} means poll. restart == 1 means "restart if interrupted."
| int ACE_ATM_Acceptor::close | ( | void | ) |
Close down the acceptor and release resources.
Definition at line 33 of file ATM_Acceptor.inl.
00034 { 00035 #if defined (ACE_HAS_FORE_ATM_XTI) || defined (ACE_HAS_FORE_ATM_WS2) || defined (ACE_HAS_LINUX_ATM) 00036 return (acceptor_.close()); 00037 #else 00038 return 0; 00039 #endif // ACE_HAS_FORE_ATM_XTI || ACE_HAS_FORE_ATM_WS2 || ACE_HAS_LINUX_ATM 00040 }
| void ACE_ATM_Acceptor::dump | ( | void | ) | const |
Dump the state of an object.
Definition at line 9 of file ATM_Acceptor.inl.
00010 { 00011 #if defined (ACE_HAS_DUMP) 00012 ACE_TRACE ("ACE_ATM_Acceptor::dump"); 00013 #endif /* ACE_HAS_DUMP */ 00014 }
| int ACE_ATM_Acceptor::get_local_addr | ( | ACE_ATM_Addr & | local_addr | ) |
Get the local address currently listening on.
| ACE_HANDLE ACE_ATM_Acceptor::open | ( | const ACE_Addr & | remote_sap, | |
| int | backlog = ACE_DEFAULT_BACKLOG, |
|||
| ACE_ATM_Params | params = ACE_ATM_Params() | |||
| ) |
Initiate a passive mode socket.
ATM_Acceptor ACE_ATM_Acceptor::acceptor_ [private] |
Definition at line 110 of file ATM_Acceptor.h.
Declare the dynamic allocation hooks.
Definition at line 107 of file ATM_Acceptor.h.
1.6.1