Clean thread exit
better nonblocking socket mode support
This commit is contained in:
2
Socket.h
2
Socket.h
@ -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;
|
||||
|
Reference in New Issue
Block a user