summaryrefslogtreecommitdiffstats
path: root/rfb/rfb.h
diff options
context:
space:
mode:
authorrunge <runge>2005-03-05 01:06:05 +0000
committerrunge <runge>2005-03-05 01:06:05 +0000
commitb8b96689bf29ae1b2fca12a59be9196d6a2acb25 (patch)
tree040b06215c2d5141cf6a9a1bf4fe93524b7fcc43 /rfb/rfb.h
parent3c4522e67652d36162d007dce1dcd798562da5fb (diff)
downloadlibtdevnc-b8b96689bf29ae1b2fca12a59be9196d6a2acb25.tar.gz
libtdevnc-b8b96689bf29ae1b2fca12a59be9196d6a2acb25.zip
add '-listen ipaddr' option
Diffstat (limited to 'rfb/rfb.h')
-rw-r--r--rfb/rfb.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index bdff995..660baab 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -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 */