Clean thread exit

better nonblocking socket mode support
This commit is contained in:
IMback
2017-11-05 22:07:26 +01:00
parent e07866b906
commit 7603d1c59d
3 changed files with 78 additions and 20 deletions

View File

@ -102,6 +102,7 @@ public:
const std::string &protocol = "tcp");
void setKeepalive();
void setBlocking(bool flag);
private:
// Prevent the user from trying to use value semantics on this object
@ -231,6 +232,7 @@ public:
*/
TCPSocket *accept() ;
private:
void setListen(int queueLen) ;
bool keepalive;