OpenDDS::DCPS::SimpleTcpDataLink Class Reference

#include <SimpleTcpDataLink.h>

Inheritance diagram for OpenDDS::DCPS::SimpleTcpDataLink:

Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::SimpleTcpDataLink:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SimpleTcpDataLink (const ACE_INET_Addr &remote_address, SimpleTcpTransport *transport_impl)
virtual ~SimpleTcpDataLink ()
const ACE_INET_Addr & remote_address () const
 Accessor for the remote address.
int connect (SimpleTcpConnection *connection, TransportSendStrategy *send_strategy, TransportReceiveStrategy *receive_strategy)
int reconnect (SimpleTcpConnection *connection)
SimpleTcpConnection_rch get_connection ()
SimpleTcpTransport_rch get_transport_impl ()
virtual void pre_stop_i ()
virtual void fully_associated ()

Protected Member Functions

virtual void stop_i ()

Private Member Functions

void send_graceful_disconnect_message ()

Private Attributes

ACE_INET_Addr remote_address_
SimpleTcpConnection_rch connection_
SimpleTcpTransport_rch transport_
bool graceful_disconnect_sent_

Constructor & Destructor Documentation

OpenDDS::DCPS::SimpleTcpDataLink::SimpleTcpDataLink ( const ACE_INET_Addr &  remote_address,
SimpleTcpTransport transport_impl 
)

OpenDDS::DCPS::SimpleTcpDataLink::~SimpleTcpDataLink (  )  [virtual]


Member Function Documentation

int OpenDDS::DCPS::SimpleTcpDataLink::connect ( SimpleTcpConnection connection,
TransportSendStrategy send_strategy,
TransportReceiveStrategy receive_strategy 
)

Called when an established connection object is available for this SimpleTcpDataLink. Called by the SimpleTcpTransport's connect_datalink() method.

void OpenDDS::DCPS::SimpleTcpDataLink::fully_associated (  )  [virtual]

Called on subscriber side to send the fully association message to the publisher.

Reimplemented from OpenDDS::DCPS::DataLink.

ACE_INLINE OpenDDS::DCPS::SimpleTcpConnection_rch OpenDDS::DCPS::SimpleTcpDataLink::get_connection (  ) 

ACE_INLINE OpenDDS::DCPS::SimpleTcpTransport_rch OpenDDS::DCPS::SimpleTcpDataLink::get_transport_impl (  ) 

void OpenDDS::DCPS::SimpleTcpDataLink::pre_stop_i (  )  [virtual]

Called before release the datalink or before shutdown to let the concrete DataLink to do anything necessary.

Reimplemented from OpenDDS::DCPS::DataLink.

int OpenDDS::DCPS::SimpleTcpDataLink::reconnect ( SimpleTcpConnection connection  ) 

Associate the new connection object with this datalink object. The states of the "old" connection object are copied to the new connection object and the "old" connection object is replaced by the new connection object.

ACE_INLINE const ACE_INET_Addr & OpenDDS::DCPS::SimpleTcpDataLink::remote_address (  )  const

Accessor for the remote address.

void OpenDDS::DCPS::SimpleTcpDataLink::send_graceful_disconnect_message (  )  [private]

void OpenDDS::DCPS::SimpleTcpDataLink::stop_i (  )  [protected, virtual]

Called when the DataLink is self-releasing because all of its reservations have been released, or when the TransportImpl is handling a shutdown() call.

Implements OpenDDS::DCPS::DataLink.


Member Data Documentation

SimpleTcpConnection_rch OpenDDS::DCPS::SimpleTcpDataLink::connection_ [private]

bool OpenDDS::DCPS::SimpleTcpDataLink::graceful_disconnect_sent_ [private]

ACE_INET_Addr OpenDDS::DCPS::SimpleTcpDataLink::remote_address_ [private]

SimpleTcpTransport_rch OpenDDS::DCPS::SimpleTcpDataLink::transport_ [private]


The documentation for this class was generated from the following files:
Generated on Fri Nov 7 09:37:48 2008 for OpenDDS by  doxygen 1.4.7