summaryrefslogtreecommitdiffstats
path: root/libvncclient/rfbproto.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/rfbproto.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/rfbproto.c')
-rw-r--r--libvncclient/rfbproto.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c
index df8eb2f..602594b 100644
--- a/libvncclient/rfbproto.c
+++ b/libvncclient/rfbproto.c
@@ -421,6 +421,9 @@ ConnectToRFBServer(rfbClient* client,const char *hostname, int port)
return FALSE;
}
+ if(client->QoS_DSCP && !SetDSCP(client->sock, client->QoS_DSCP))
+ return FALSE;
+
return SetNonBlocking(client->sock);
}