From 1f0485039a276ad1c2fa3d53d284e3a87940ec77 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 6 Jun 2015 14:31:05 +0200 Subject: Convert all code to use StreamSocket::SendQueue Let OnStreamSocketWrite see the entire sendq instead of one element at a time --- include/iohook.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/iohook.h') diff --git a/include/iohook.h b/include/iohook.h index ce7ca2a1b..cf27fcb0c 100644 --- a/include/iohook.h +++ b/include/iohook.h @@ -66,11 +66,10 @@ 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 Data to send to the socket * @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, std::string& sendq) = 0; + virtual int OnStreamSocketWrite(StreamSocket* sock) = 0; /** Called immediately before any socket is closed. When this event is called, shutdown() * has not yet been called on the socket. -- cgit v1.2.3