]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/iohook.h
Extract code that reads data into a recvq from StreamSocket::DoRead() into ReadToRecvQ()
[user/henk/code/inspircd.git] / include / iohook.h
index cf27fcb0cfc4876b7fdba0312fd3aea0d34d6141..57630796397485934253787ee022741bbff2cf32 100644 (file)
@@ -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.