summaryrefslogtreecommitdiffstats
path: root/rfb/rfbclient.h
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2010-01-15 13:47:43 +0800
committerJohannes Schindelin <johannes.schindelin@gmx.de>2010-01-16 11:28:00 +0100
commita2ad61755fb01031193bf89421f6bc2c8e706165 (patch)
tree35946fe5feee9e6061ff5cd4158281defd1e5a26 /rfb/rfbclient.h
parent909683fd970fa842a12d2437ea30a624caf2e761 (diff)
downloadlibtdevnc-a2ad61755fb01031193bf89421f6bc2c8e706165.tar.gz
libtdevnc-a2ad61755fb01031193bf89421f6bc2c8e706165.zip
Add UltraVNC Repeater support in libvncclient
[jes: adjusted coding style, made sure port is initialized correctly] Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'rfb/rfbclient.h')
-rw-r--r--rfb/rfbclient.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h
index a82ea22..bc4ec14 100644
--- a/rfb/rfbclient.h
+++ b/rfb/rfbclient.h
@@ -309,6 +309,10 @@ typedef struct _rfbClient {
/* The 0-terminated security types supported by the client.
* Set by function SetClientAuthSchemes() */
uint32_t *clientAuthSchemes;
+
+ /* When the server is a repeater, this specifies the final destination */
+ char *destHost;
+ int destPort;
} rfbClient;
/* cursor.c */
@@ -326,6 +330,7 @@ extern rfbBool rfbEnableClientLogging;
typedef void (*rfbClientLogProc)(const char *format, ...);
extern rfbClientLogProc rfbClientLog,rfbClientErr;
extern rfbBool ConnectToRFBServer(rfbClient* client,const char *hostname, int port);
+extern rfbBool ConnectToRFBRepeater(rfbClient* client,const char *repeaterHost, int repeaterPort, const char *destHost, int destPort);
extern void SetClientAuthSchemes(rfbClient* client,const uint32_t *authSchemes, int size);
extern rfbBool InitialiseRFBConnection(rfbClient* client);
extern rfbBool SetFormatAndEncodings(rfbClient* client);