8 #ifndef OPENDDS_DCPS_TRANSPORT_TCP_TCPCONNECTION_H 9 #define OPENDDS_DCPS_TRANSPORT_TCP_TCPCONNECTION_H 81 virtual int open(
void* arg);
92 virtual int close(u_long);
205 #if defined (__ACE_INLINE__)
void active_reconnect_i()
virtual int close(u_long)
unsigned long ACE_Reactor_Mask
TcpDataLink_rch link_
Datalink object which is needed for connection lost callback.
LockType reconnect_lock_
Lock to synchronize state between reactor and non-reactor threads.
bool shutdown_
shutdown flag
std::size_t id_
Small unique identifying value.
ACE_Guard< LockType > GuardType
virtual ACE_Event_Handler::Reference_Count add_reference()
TcpReceiveStrategy_rch receive_strategy()
ACE_Message_Block passive_setup_buffer_
const std::string & config_name() const
Priority transport_priority_
TRANSPORT_PRIORITY.value policy value.
TcpConnection()
Passive side constructor (acceptor)
void notify_connection_lost()
virtual int open(void *arg)
TcpTransport * transport_during_setup_
bool is_connector() const
ReconnectState
States are used during reconnecting.
Priority & transport_priority()
Access TRANSPORT_PRIORITY.value policy value if set.
virtual int handle_close(ACE_HANDLE, ACE_Reactor_Mask)
ACE_INET_Addr get_remote_address()
int on_active_connection_established()
Handle the logic after an active connection has been established.
virtual ACE_Event_Handler::Reference_Count remove_reference()
virtual int handle_output(ACE_HANDLE)
Handle back pressure when sending.
TcpTransport_rch impl_
Impl object which is needed for connection objects and reconnect task.
virtual int priority(void) const
void transfer(TcpConnection *connection)
void relink_from_send(bool do_suspend)
Reconnect initiated by send strategy.
void notify_lost_on_backpressure_timeout()
WeakRcHandle< TcpInst > tcp_config_
The configuration used by this connection.
#define OPENDDS_POOL_ALLOCATION_FWD
int handle_timeout(const ACE_Time_Value &tv, const void *arg)
ACE_INET_Addr remote_address_
Remote address.
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
ReconnectState reconnect_state_
The state indicates each step of the reconnecting.
void relink_from_recv(bool do_suspend)
Reconnect initiated by receive strategy.
void passive_reconnect_i()
int handle_setup_input(ACE_HANDLE h)
TcpSendStrategy_rch send_strategy()
void handle_stop_reconnecting()
int active_reconnect_open()
const char * reconnect_state_string() const
Get name of the current reconnect state as a string.
void set_sock_options(const TcpInst_rch &tcp_config)
The Internal API and Implementation of OpenDDS.
virtual int handle_input(ACE_HANDLE)
We pass this "event" along to the receive_strategy.
bool is_connector_
Flag indicate this connection object is the connector or acceptor.
ACE_INET_Addr local_address_
Local address.
void set_datalink(const TcpDataLink_rch &link)