diff options
author | runge <runge> | 2005-03-05 01:06:05 +0000 |
---|---|---|
committer | runge <runge> | 2005-03-05 01:06:05 +0000 |
commit | b8b96689bf29ae1b2fca12a59be9196d6a2acb25 (patch) | |
tree | 040b06215c2d5141cf6a9a1bf4fe93524b7fcc43 /rfb | |
parent | 3c4522e67652d36162d007dce1dcd798562da5fb (diff) | |
download | libtdevnc-b8b96689bf29ae1b2fca12a59be9196d6a2acb25.tar.gz libtdevnc-b8b96689bf29ae1b2fca12a59be9196d6a2acb25.zip |
add '-listen ipaddr' option
Diffstat (limited to 'rfb')
-rw-r--r-- | rfb/rfb.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -257,6 +257,8 @@ typedef struct _rfbScreenInfo /* if LibVNCServer doesn't know the normal message, it calls this * hook. If the hook handles the message, it returns TRUE. */ rfbProcessCustomClientMessageProcPtr processCustomClientMessage; + + in_addr_t listenInterface; } rfbScreenInfo, *rfbScreenInfoPtr; @@ -506,8 +508,8 @@ extern int rfbWriteExact(rfbClientPtr cl, const char *buf, int len); extern void rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec); extern int rfbConnect(rfbScreenInfoPtr rfbScreen, char* host, int port); extern int rfbConnectToTcpAddr(char* host, int port); -extern int rfbListenOnTCPPort(int port); -extern int rfbListenOnUDPPort(int port); +extern int rfbListenOnTCPPort(int port, in_addr_t iface); +extern int rfbListenOnUDPPort(int port, in_addr_t iface); /* rfbserver.c */ |