00001 /* 00002 * 00003 * 00004 * Distributed under the OpenDDS License. 00005 * See: http://www.opendds.org/license.html 00006 */ 00007 00008 #ifndef OPENDDS_TCPSYNCHRESOURCE_H 00009 #define OPENDDS_TCPSYNCHRESOURCE_H 00010 00011 #include "TcpConnection_rch.h" 00012 #include "TcpConnection.h" 00013 #include "dds/DCPS/transport/framework/ThreadSynchResource.h" 00014 #include "ace/Handle_Set.h" 00015 #include "ace/Time_Value.h" 00016 00017 namespace OpenDDS { 00018 namespace DCPS { 00019 00020 class TcpSynchResource : public ThreadSynchResource { 00021 public: 00022 00023 TcpSynchResource(const TcpConnection_rch& connection, 00024 const int& max_output_pause_period_ms); 00025 virtual ~TcpSynchResource(); 00026 00027 virtual void notify_lost_on_backpressure_timeout(); 00028 00029 private: 00030 00031 TcpConnection_rch connection_; 00032 }; 00033 00034 } // namespace DCPS 00035 } // namespace OpenDDS 00036 00037 #endif /* OPENDDS_TCPSYNCHRESOURCE_H */