diff options
author | Christian Beier <dontmind@freeshell.org> | 2010-09-29 23:42:52 +0200 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2010-09-29 23:42:52 +0200 |
commit | 0797e42a4aaf8131ae71899faea2d682ed81cb59 (patch) | |
tree | db5c79c95472f45c2dfd3eb942923ecf6245b81f /libvncclient/rfbproto.c | |
parent | c0373e9cd48b0fc22ac295fdab51a29e3df7a0cd (diff) | |
download | libtdevnc-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.c | 3 |
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); } |