Move socket write event handling in to the RFB core
What to do when a socket is writeable should be handled in the
RFB core code as there may be other events we want to fire off
when this happens.
diff --git a/common/rfb/HTTPServer.h b/common/rfb/HTTPServer.h
index 6412946..d7ca69a 100644
--- a/common/rfb/HTTPServer.h
+++ b/common/rfb/HTTPServer.h
@@ -58,11 +58,16 @@
// Could clean up socket-specific resources here.
virtual void removeSocket(network::Socket* sock);
- // processSocketEvent()
+ // processSocketReadEvent()
// The platform-specific side of the server implementation calls
// this method whenever data arrives on one of the active
// network sockets.
- virtual void processSocketEvent(network::Socket* sock);
+ virtual void processSocketReadEvent(network::Socket* sock);
+
+ // processSocketWriteEvent()
+ // Similar to processSocketReadEvent(), but called when it is
+ // possible to write more data to a socket.
+ virtual void processSocketWriteEvent(network::Socket* sock);
// Check for socket timeouts
virtual int checkTimeouts();