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::DCPS::TcpConnectionReplaceTask::TcpConnectionReplaceTask( 00016 TcpTransport* trans) 00017 : trans_(trans) 00018 { 00019 DBG_ENTRY_LVL("TcpConnectionReplaceTask","TcpConnectionReplaceTask",6); 00020 } 00021 00022 OpenDDS::DCPS::TcpConnectionReplaceTask::~TcpConnectionReplaceTask() 00023 { 00024 DBG_ENTRY_LVL("TcpConnectionReplaceTask","~TcpConnectionReplaceTask",6); 00025 } 00026 00027 void OpenDDS::DCPS::TcpConnectionReplaceTask::execute(TcpConnection_rch& con) 00028 { 00029 DBG_ENTRY_LVL("TcpConnectionReplaceTask","execute",6); 00030 00031 this->trans_->fresh_link(con); 00032 }