diff options
author | Max Kellermann <max@duempel.org> | 2013-01-27 22:37:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-27 22:38:14 +0100 |
commit | 068f191c0d9459554db536ac3d7f64f9b9338381 (patch) | |
tree | a138dd0d1505cef6af6e73e5ced50a559d5f5364 /src/event/SocketMonitor.hxx | |
parent | 6bf6c9215b413ad1e27328d2b2597c9489376221 (diff) | |
download | mpd-068f191c0d9459554db536ac3d7f64f9b9338381.tar.gz mpd-068f191c0d9459554db536ac3d7f64f9b9338381.tar.xz mpd-068f191c0d9459554db536ac3d7f64f9b9338381.zip |
event/SocketMonitor: add method Steal()
Diffstat (limited to 'src/event/SocketMonitor.hxx')
-rw-r--r-- | src/event/SocketMonitor.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/event/SocketMonitor.hxx b/src/event/SocketMonitor.hxx index 236e5fbda..ddfc21a42 100644 --- a/src/event/SocketMonitor.hxx +++ b/src/event/SocketMonitor.hxx @@ -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) { |