summaryrefslogtreecommitdiffstats
path: root/libvncclient/vncviewer.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2010-09-29 23:42:52 +0200
committerChristian Beier <dontmind@freeshell.org>2010-09-29 23:42:52 +0200
commit0797e42a4aaf8131ae71899faea2d682ed81cb59 (patch)
treedb5c79c95472f45c2dfd3eb942923ecf6245b81f /libvncclient/vncviewer.c
parentc0373e9cd48b0fc22ac295fdab51a29e3df7a0cd (diff)
downloadlibtdevnc-0797e42a4aaf8131ae71899faea2d682ed81cb59.tar.gz
libtdevnc-0797e42a4aaf8131ae71899faea2d682ed81cb59.zip
IP QoS support in libvncclient.
This enables setting the DSCP/Traffic Class field of IP/IPv6 packets sent by a client. For example starting a client with -qosdscp 184 marks all outgoing traffic for expedited forwarding. Implementation for Win32 is still a TODO, though. See http://betelco.blogspot.com/2009/03/dscp-marking-under-windows-at.html for an overview of the Win32 QoS API mess...
Diffstat (limited to 'libvncclient/vncviewer.c')
-rw-r--r--libvncclient/vncviewer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c
index 6541c1d..1c5ea6e 100644
--- a/libvncclient/vncviewer.c
+++ b/libvncclient/vncviewer.c
@@ -186,6 +186,7 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
client->Bell = Dummy;
client->CurrentKeyboardLedState = 0;
client->HandleKeyboardLedState = (HandleKeyboardLedStateProc)DummyPoint;
+ client->QoS_DSCP = 0;
client->authScheme = 0;
client->subAuthScheme = 0;
@@ -288,6 +289,9 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) {
} else if (i+1<*argc && strcmp(argv[i], "-scale") == 0) {
client->appData.scaleSetting = atoi(argv[i+1]);
j+=2;
+ } else if (i+1<*argc && strcmp(argv[i], "-qosdscp") == 0) {
+ client->QoS_DSCP = atoi(argv[i+1]);
+ j+=2;
} else if (i+1<*argc && strcmp(argv[i], "-repeaterdest") == 0) {
char* colon=strchr(argv[i+1],':');