summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authordscho <dscho>2001-09-21 23:33:47 +0000
committerdscho <dscho>2001-09-21 23:33:47 +0000
commitfebced55362321b1015fe23ca7d7b831c28acfcc (patch)
tree2b2d95725059e4d1ea0c38a68c095e685d338b3f /main.c
parentc880fd33ff71ca0b53eaf6bd9942f74be67fe4e4 (diff)
downloadlibtdevnc-febced55362321b1015fe23ca7d7b831c28acfcc.tar.gz
libtdevnc-febced55362321b1015fe23ca7d7b831c28acfcc.zip
http added, prepare for cursor
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.c b/main.c
index 43cb0e0..6d9abe2 100644
--- a/main.c
+++ b/main.c
@@ -310,6 +310,11 @@ rfbScreenInfoPtr rfbDefaultScreenInit(int argc,char** argv,int width,int height,
rfbScreen->maxFd=0;
rfbScreen->rfbListenSock=-1;
rfbScreen->udpPort=0;
+ rfbScreen->httpPort=0;
+ rfbScreen->httpDir=NULL;
+ rfbScreen->httpListenSock=-1;
+ rfbScreen->httpSock=-1;
+ rfbScreen->httpFP=NULL;
rfbScreen->inetdInitDone = FALSE;
rfbScreen->desktopName = "LibVNCServer";
rfbScreen->rfbAlwaysShared = FALSE;
@@ -388,7 +393,7 @@ void
processEvents(rfbScreenInfoPtr rfbScreen,long usec)
{
rfbCheckFds(rfbScreen,usec);
- //httpCheckFds(rfbScreen);
+ httpCheckFds(rfbScreen);
#ifdef CORBA
corbaCheckFds(rfbScreen);
#endif
@@ -421,6 +426,7 @@ void runEventLoop(rfbScreenInfoPtr rfbScreen, long usec, Bool runInBackground)
}
rfbInitSockets(rfbScreen);
+ httpInitSockets(rfbScreen);
while(1)
processEvents(rfbScreen,usec);
}