UniSet  2.2.1
UTCPStream.h
00001 // -------------------------------------------------------------------------
00002 #ifndef UTCPStream_H_
00003 #define UTCPStream_H_
00004 // -------------------------------------------------------------------------
00005 #include <string>
00006 #include <cc++/socket.h>
00007 // -------------------------------------------------------------------------
00012 class UTCPStream:
00013     public ost::TCPStream
00014 {
00015     public:
00016 
00017         UTCPStream();
00018         virtual ~UTCPStream();
00019 
00020         void create( const std::string& hname, int port, bool throwflag = false, timeout_t timer = 0 );
00021 
00022         // set keepalive params
00023         // return true if OK
00024         bool setKeepAliveParams( timeout_t timeout_sec = 5, int conn_keepcnt = 1, int keepintvl = 2 );
00025 
00026     protected:
00027 
00028     private:
00029 
00030 };
00031 // -------------------------------------------------------------------------
00032 #endif // UTCPStream_H_
00033 // -------------------------------------------------------------------------