event/SocketMonitor: add method Steal()

This commit is contained in:
Max Kellermann
2013-01-27 22:37:01 +01:00
parent 6bf6c9215b
commit 068f191c0d
2 changed files with 17 additions and 3 deletions
+6
View File
@@ -73,6 +73,12 @@ public:
void Open(int _fd);
/**
* "Steal" the socket descriptor. This abandons the socket
* and puts the responsibility for closing it to the caller.
*/
int Steal();
void Close();
void Schedule(unsigned flags) {