TAO_Connection_Handler.
More...
#include <Connection_Handler.h>
TAO_Connection_Handler.
This class is an abstraction for the connection handlers. The connections handler in every protocol can derive from this class as well as the ACE_Svc_Handler specialised for the right protocol. This way, most of the common code for the different protocols would be in this implementation.
TAO_Connection_Handler::TAO_Connection_Handler |
( |
TAO_ORB_Core * |
orb_core | ) |
|
|
explicit |
TAO_Connection_Handler::~TAO_Connection_Handler |
( |
void |
| ) |
|
|
virtual |
void TAO_Connection_Handler::cancel_pending_connection |
( |
void |
| ) |
|
A pending connection may be canceled due to an error detected while the initiating thread is still in the Connector.
virtual int TAO_Connection_Handler::close_connection |
( |
void |
| ) |
|
|
pure virtual |
Close the underlying connection.
Used by the ORB to actively close connections that are idle, stale or somehow are determined to be broken before the Reactor does.
- Returns
- Return 0 if the connection was already closed, non-zero otherwise.
Implemented in TAO_IIOP_Connection_Handler.
int TAO_Connection_Handler::close_handler |
( |
u_long |
flags = 0 | ) |
|
|
virtual |
A close() hook, called by the Transport Connector when they want to close this handler
void TAO_Connection_Handler::connection_pending |
( |
void |
| ) |
|
When waiting for an asynchronous connection to complete an additional reference must be maintained, related to bugzilla #2417. However once the connection is successfully established, this reference must be removed. Using connection_pending allows the connection handler to know that it is opening as a result of a delayed asynch connection rather than an immediate synch connection, which has no additional reference needs.
virtual int TAO_Connection_Handler::handle_input |
( |
ACE_HANDLE |
fd | ) |
|
|
pure virtual |
The event handler calls, here so that other objects who hold a reference to this object can call the event handler methods.
Implemented in TAO_IIOP_Connection_Handler.
int TAO_Connection_Handler::handle_input_internal |
( |
ACE_HANDLE |
h, |
|
|
ACE_Event_Handler * |
eh |
|
) |
| |
|
protected |
Implement the handle_output() callback.
int TAO_Connection_Handler::handle_output_eh |
( |
ACE_HANDLE |
h, |
|
|
ACE_Event_Handler * |
eh |
|
) |
| |
|
protected |
Implement the handle_output() callback.
int TAO_Connection_Handler::handle_write_ready |
( |
const ACE_Time_Value * |
timeout | ) |
|
|
virtual |
Derived classes should implement this for proper support with the Blocking Flushing Strategy.
Reimplemented in TAO_IIOP_Connection_Handler.
bool TAO_Connection_Handler::is_closed |
( |
void |
| ) |
const |
Is the handler closed or timed out?
bool TAO_Connection_Handler::is_connecting |
( |
void |
| ) |
const |
Is the handler in the process of being connected?
bool TAO_Connection_Handler::is_open |
( |
void |
| ) |
const |
bool TAO_Connection_Handler::is_timeout |
( |
void |
| ) |
const |
virtual int TAO_Connection_Handler::open_handler |
( |
void * |
| ) |
|
|
pure virtual |
void TAO_Connection_Handler::pos_io_hook |
( |
int & |
return_value | ) |
|
|
protectedvirtual |
Post-invocation hook for I/O operations (handle_input() & handle_output()) See the SSLIOP protocol for an interesting use-case
void TAO_Connection_Handler::pre_io_hook |
( |
int & |
return_value | ) |
|
|
protectedvirtual |
Pre-invocation hook for I/O operations (handle_input() & handle_output()) See the SSLIOP protocol for an interesting use-case
int TAO_Connection_Handler::release_os_resources |
( |
void |
| ) |
|
|
virtual |
int TAO_Connection_Handler::set_dscp_codepoint |
( |
CORBA::Boolean |
set_network_priority | ) |
|
|
virtual |
Set the Diff-Serv codepoint on outgoing packets. Only has effect for remote protocols (e.g., IIOP); no effect for local protocols (UIOP). Default implementation is for local protocols. Remote protocols must overwrite implementation.
Reimplemented in TAO_IIOP_Connection_Handler.
int TAO_Connection_Handler::set_dscp_codepoint |
( |
CORBA::Long |
dscp_codepoint | ) |
|
|
virtual |
int TAO_Connection_Handler::set_socket_option |
( |
ACE_SOCK & |
sock, |
|
|
int |
snd_size, |
|
|
int |
rcv_size |
|
) |
| |
|
protected |
Set options on the socket.
int TAO_Connection_Handler::shared_open |
( |
void |
| ) |
|
|
protected |
A common function called at the start of any protocol-specific open. Returns -1 on a failure (although no failure mode is currently defined).
int TAO_Connection_Handler::svc_i |
( |
void |
| ) |
|
This method is invoked from the svc () method of the Svc_Handler Object.
Return the underlying transport object.
void TAO_Connection_Handler::transport |
( |
TAO_Transport * |
transport | ) |
|
Set the underlying transport object.
bool TAO_Connection_Handler::connection_pending_ |
|
private |
Stores the connection pending state.
bool TAO_Connection_Handler::is_closed_ |
|
private |
Once closed make sure the transport is not added back to the cache. This is distinct from the leader-follower state so it cannot be reset.
Transport object reference.
The documentation for this class was generated from the following files: