From 34f714bcdc3e2d7a21a9179357dc93f2561301c8 Mon Sep 17 00:00:00 2001 From: dscho Date: Sat, 7 May 2005 13:33:09 +0000 Subject: socketInitDone -> socketState --- libvncserver/httpd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libvncserver/httpd.c') diff --git a/libvncserver/httpd.c b/libvncserver/httpd.c index b973bb6..f341d1a 100755 --- a/libvncserver/httpd.c +++ b/libvncserver/httpd.c @@ -111,6 +111,13 @@ rfbHttpInitSockets(rfbScreenInfoPtr rfbScreen) /*AddEnabledDevice(httpListenSock);*/ } +void rfbHttpShutdownSockets(rfbScreenInfoPtr rfbScreen) { + if(rfbScreen->httpSock>-1) { + close(rfbScreen->httpSock); + FD_CLR(rfbScreen->httpSock,&rfbScreen->allFds); + rfbScreen->httpSock=-1; + } +} /* * httpCheckFds is called from ProcessInputEvents to check for input on the -- cgit v1.2.1