net/SocketDescriptor: add AcceptNonBlock() overload without address
This commit is contained in:
@@ -76,6 +76,13 @@ public:
|
||||
return fd == other.fd;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return an "undefined" instance on error
|
||||
*/
|
||||
UniqueSocketDescriptor AcceptNonBlock() const {
|
||||
return UniqueSocketDescriptor(SocketDescriptor::AcceptNonBlock());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return an "undefined" instance on error
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user