aboutsummaryrefslogtreecommitdiffstats
path: root/common/network/Socket.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-04-29 15:55:06 +0200
committerPierre Ossman <ossman@cendio.se>2016-04-29 15:55:06 +0200
commit2b949c2a8b02be4920388ce58a473e8cdc182b43 (patch)
treef13776e9e180d7e6ddf556424ade7ef19fa0d924 /common/network/Socket.h
parent75bbf640a4240e57406ae171473d26dde2636389 (diff)
parent352d062e982ea38506756c04b9f4362d0f1ae892 (diff)
downloadtigervnc-2b949c2a8b02be4920388ce58a473e8cdc182b43.tar.gz
tigervnc-2b949c2a8b02be4920388ce58a473e8cdc182b43.zip
Merge branch 'socket' of https://github.com/CendioOssman/tigervnc
Diffstat (limited to 'common/network/Socket.h')
-rw-r--r--common/network/Socket.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/common/network/Socket.h b/common/network/Socket.h
index 378a9006..13b12d1d 100644
--- a/common/network/Socket.h
+++ b/common/network/Socket.h
@@ -125,12 +125,17 @@ namespace network {
// resources to be freed.
virtual void removeSocket(network::Socket* sock) = 0;
- // processSocketEvent() tells the server there is a Socket read event.
+ // processSocketReadEvent() tells the server there is a Socket read event.
// The implementation can indicate that the Socket is no longer active
// by calling shutdown() on it. The caller will then call removeSocket()
// soon after processSocketEvent returns, to allow any pre-Socket
// resources to be tidied up.
- virtual void processSocketEvent(network::Socket* sock) = 0;
+ virtual void processSocketReadEvent(network::Socket* sock) = 0;
+
+ // processSocketReadEvent() tells the server there is a Socket write event.
+ // This is only necessary if the Socket has been put in non-blocking
+ // mode and needs this callback to flush the buffer.
+ virtual void processSocketWriteEvent(network::Socket* sock) = 0;
// checkTimeouts() allows the server to check socket timeouts, etc. The
// return value is the number of milliseconds to wait before