UniSet  2.6.0
USocket.h
1 // -------------------------------------------------------------------------
2 #ifndef USocket_H_
3 #define USocket_H_
4 // -------------------------------------------------------------------------
5 #include <Poco/Net/Socket.h>
6 #include "PassiveTimer.h" // fot timeout_t
7 // -------------------------------------------------------------------------
8 namespace uniset
9 {
10 
11  class USocket:
12  public Poco::Net::Socket
13  {
14  public:
15 
16  USocket();
17  virtual ~USocket();
18 
19  // set keepalive params
20  // return true if OK
21  bool setKeepAliveParams( timeout_t timeout_sec = 5, int conn_keepcnt = 1, int keepintvl = 2 );
22 
23  int getSocket();
24 
25  protected:
26  void init( bool throwflag = false );
27 
28  private:
29 
30  };
31  // -------------------------------------------------------------------------
32 } // end of uniset namespace
33 // -------------------------------------------------------------------------
34 #endif // USocket_H_
35 // -------------------------------------------------------------------------
Definition: CallbackTimer.h:29
Definition: USocket.h:11