TAO
2.3.1
|
Abstract Acceptor class used for pluggable transports. More...
#include <Transport_Acceptor.h>
Public Member Functions | |
TAO_Acceptor (CORBA::ULong tag) | |
virtual | ~TAO_Acceptor (void) |
Destructor. More... | |
CORBA::ULong | tag (void) const |
The tag, each concrete class will have a specific tag value. More... | |
void | set_error_retry_delay (time_t delay) |
virtual int | open (TAO_ORB_Core *orb_core, ACE_Reactor *reactor, int version_major, int version_minor, const char *address, const char *options=0)=0 |
Method to initialize acceptor for address. More... | |
virtual int | open_default (TAO_ORB_Core *, ACE_Reactor *reactor, int version_major, int version_minor, const char *options=0)=0 |
virtual int | close (void)=0 |
Closes the acceptor. More... | |
virtual int | create_profile (const TAO::ObjectKey &object_key, TAO_MProfile &mprofile, CORBA::Short priority)=0 |
virtual int | is_collocated (const TAO_Endpoint *endpoint)=0 |
Return 1 if the endpoint has the same address as the acceptor. More... | |
virtual CORBA::ULong | endpoint_count (void)=0 |
virtual int | object_key (IOP::TaggedProfile &profile, TAO::ObjectKey &key)=0 |
int | handle_accept_error (ACE_Event_Handler *base_acceptor) |
int | handle_expiration (ACE_Event_Handler *base_acceptor) |
Private Attributes | |
CORBA::ULong const | tag_ |
IOP protocol tag. More... | |
time_t | error_retry_delay_ |
Abstract Acceptor class used for pluggable transports.
Base class for the Acceptor bridge class.
TAO_Acceptor::TAO_Acceptor | ( | CORBA::ULong | tag | ) |
|
virtual |
Destructor.
|
pure virtual |
Closes the acceptor.
Implemented in TAO_IIOP_Acceptor.
|
pure virtual |
Create the corresponding profile for this endpoint. If share_profile is set to true, the pluggable protocol implementation should try to add the endpoint to a profile in the mprofile that is of the same type. Currently, this is used when RT CORBA is enabled.
Implemented in TAO_IIOP_Acceptor.
|
pure virtual |
Returns the number of endpoints this acceptor is listening on. This is used for determining how many profiles will be generated for this acceptor.
Implemented in TAO_IIOP_Acceptor.
int TAO_Acceptor::handle_accept_error | ( | ACE_Event_Handler * | base_acceptor | ) |
This method is not directly associated with the method of the same name on the ACE_Acceptor template class. However, it is called by the TAO_Strategy_Acceptor method of the same name.
int TAO_Acceptor::handle_expiration | ( | ACE_Event_Handler * | base_acceptor | ) |
Perform the handle_timeout functionality to put this acceptor back into the reactor to try accepting again.
|
pure virtual |
Return 1 if the endpoint has the same address as the acceptor.
Implemented in TAO_IIOP_Acceptor.
|
pure virtual |
This method fetches the key from the profile. Protocols that are pluggable can send data that are specific in the profile_data
field encapsulated as a octet stream. This method allows those protocols to get the object key from the encapsulation.
Implemented in TAO_IIOP_Acceptor.
|
pure virtual |
Method to initialize acceptor for address.
Implemented in TAO_IIOP_Acceptor.
|
pure virtual |
Open an acceptor with the given protocol version on a default endpoint
Implemented in TAO_IIOP_Acceptor.
void TAO_Acceptor::set_error_retry_delay | ( | time_t | delay | ) |
Set the amount of time to delay accepting new connections in the event that we encounter an error that may be transient.
CORBA::ULong TAO_Acceptor::tag | ( | void | ) | const |
The tag, each concrete class will have a specific tag value.
|
private |
|
private |
IOP protocol tag.