diff options
author | dscho <dscho> | 2005-05-07 13:33:09 +0000 |
---|---|---|
committer | dscho <dscho> | 2005-05-07 13:33:09 +0000 |
commit | 34f714bcdc3e2d7a21a9179357dc93f2561301c8 (patch) | |
tree | 850d98f9535bd0e1fa10faff773e5069bbefbd40 /rfb | |
parent | 1bb36df34ea25a3379b5232154a55e4da489ab60 (diff) | |
download | libvncserver-34f714bcdc3e2d7a21a9179357dc93f2561301c8.zip libvncserver-34f714bcdc3e2d7a21a9179357dc93f2561301c8.tar.gz |
socketInitDone -> socketState
Diffstat (limited to 'rfb')
-rw-r--r-- | rfb/rfb.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -116,6 +116,12 @@ enum rfbNewClientAction { RFB_CLIENT_REFUSE }; +enum rfbSocketState { + RFB_SOCKET_INIT, + RFB_SOCKET_READY, + RFB_SOCKET_SHUTDOWN +}; + typedef void (*rfbKbdAddEventProcPtr) (rfbBool down, rfbKeySym keySym, struct _rfbClientRec* cl); typedef void (*rfbKbdReleaseAllKeysProcPtr) (struct _rfbClientRec* cl); typedef void (*rfbPtrAddEventProcPtr) (int buttonMask, int x, int y, struct _rfbClientRec* cl); @@ -178,7 +184,7 @@ typedef struct _rfbScreenInfo fd_set allFds; #endif - rfbBool socketInitDone; + enum rfbSocketState socketState; SOCKET inetdSock; rfbBool inetdInitDone; @@ -500,6 +506,7 @@ extern char rfbEndianTest; extern int rfbMaxClientWait; extern void rfbInitSockets(rfbScreenInfoPtr rfbScreen); +extern void rfbShutdownSockets(rfbScreenInfoPtr rfbScreen); extern void rfbDisconnectUDPSock(rfbScreenInfoPtr rfbScreen); extern void rfbCloseClient(rfbClientPtr cl); extern int rfbReadExact(rfbClientPtr cl, char *buf, int len); @@ -563,6 +570,7 @@ extern void rfbSetClientColourMaps(rfbScreenInfoPtr rfbScreen, int firstColour, /* httpd.c */ extern void rfbHttpInitSockets(rfbScreenInfoPtr rfbScreen); +extern void rfbHttpShutdownSockets(rfbScreenInfoPtr rfbScreen); extern void rfbHttpCheckFds(rfbScreenInfoPtr rfbScreen); @@ -741,6 +749,7 @@ extern rfbScreenInfoPtr rfbGetScreen(int* argc,char** argv, int width,int height,int bitsPerSample,int samplesPerPixel, int bytesPerPixel); extern void rfbInitServer(rfbScreenInfoPtr rfbScreen); +extern void rfbShutdownServer(rfbScreenInfoPtr rfbScreen,rfbBool disconnectClients); extern void rfbNewFramebuffer(rfbScreenInfoPtr rfbScreen,char *framebuffer, int width,int height, int bitsPerSample,int samplesPerPixel, int bytesPerPixel); @@ -761,6 +770,7 @@ extern void rfbRefuseOnHoldClient(rfbClientPtr cl); extern void rfbRunEventLoop(rfbScreenInfoPtr screenInfo, long usec, rfbBool runInBackground); extern rfbBool rfbProcessEvents(rfbScreenInfoPtr screenInfo,long usec); +extern rfbBool rfbIsActive(rfbScreenInfoPtr screenInfo); #endif |