From b8b96689bf29ae1b2fca12a59be9196d6a2acb25 Mon Sep 17 00:00:00 2001 From: runge Date: Sat, 5 Mar 2005 01:06:05 +0000 Subject: add '-listen ipaddr' option --- rfb/rfb.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rfb/rfb.h') 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 */ -- cgit v1.2.1