diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-08 14:28:02 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-08 14:28:02 +0200 |
commit | 3a11a742ba35155e1b2e14dc4ef1a4f7f659ea13 (patch) | |
tree | 57bf58a4299457a365ebb6d5120a4154871dff6f /include/iohook.h | |
parent | 019914b67d69b59bb1920c19fa4346f6a75a4868 (diff) |
Pass sendq to OnStreamSocketWrite
Diffstat (limited to 'include/iohook.h')
-rw-r--r-- | include/iohook.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/iohook.h b/include/iohook.h index cf27fcb0c..576307963 100644 --- a/include/iohook.h +++ b/include/iohook.h @@ -66,10 +66,11 @@ class IOHook : public classbase * Called when a hooked stream has data to write, or when the socket * engine returns it as writable * @param sock The socket in question + * @param sendq Send queue to send data from * @return 1 if the sendq has been completely emptied, 0 if there is * still data to send, and -1 if there was an error */ - virtual int OnStreamSocketWrite(StreamSocket* sock) = 0; + virtual int OnStreamSocketWrite(StreamSocket* sock, StreamSocket::SendQueue& sendq) = 0; /** Called immediately before any socket is closed. When this event is called, shutdown() * has not yet been called on the socket. |