21 #include <Poco/Net/SocketStream.h> 22 #include "PassiveTimer.h" 32 public Poco::Net::StreamSocket
36 UTCPStream(
const Poco::Net::StreamSocket& so );
40 void create(
const std::string& hname, uint16_t port, timeout_t tout_msec = 1000 );
42 bool isConnected()
const noexcept;
46 bool setKeepAliveParams( timeout_t timeout_sec = 5,
int conn_keepcnt = 1,
int keepintvl = 2 );
48 bool isSetLinger()
const;
49 void forceDisconnect();
53 int getSocket()
const;
54 timeout_t getTimeout()
const;
64 #endif // UTCPStream_H_ Definition: CommonEventLoop.h:14
Definition: UTCPStream.h:31