00001 /* 00002 * 00003 * 00004 * Distributed under the OpenDDS License. 00005 * See: http://www.opendds.org/license.html 00006 */ 00007 00008 #include "Tcp_pch.h" 00009 #include "TcpConnectionReplaceTask.h" 00010 #include "TcpTransport.h" 00011 #include "TcpConnection.h" 00012 #include "TcpSendStrategy.h" 00013 #include "dds/DCPS/transport/framework/EntryExit.h" 00014 00015 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL 00016 00017 OpenDDS::DCPS::TcpConnectionReplaceTask::TcpConnectionReplaceTask( 00018 TcpTransport* trans) 00019 : trans_(trans) 00020 { 00021 DBG_ENTRY_LVL("TcpConnectionReplaceTask","TcpConnectionReplaceTask",6); 00022 } 00023 00024 OpenDDS::DCPS::TcpConnectionReplaceTask::~TcpConnectionReplaceTask() 00025 { 00026 DBG_ENTRY_LVL("TcpConnectionReplaceTask","~TcpConnectionReplaceTask",6); 00027 } 00028 00029 void OpenDDS::DCPS::TcpConnectionReplaceTask::execute(TcpConnection_rch& con) 00030 { 00031 DBG_ENTRY_LVL("TcpConnectionReplaceTask","execute",6); 00032 00033 this->trans_->fresh_link(con); 00034 } 00035 00036 OPENDDS_END_VERSIONED_NAMESPACE_DECL