From 0797e42a4aaf8131ae71899faea2d682ed81cb59 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Wed, 29 Sep 2010 23:42:52 +0200 Subject: 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... --- rfb/rfbclient.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rfb/rfbclient.h') diff --git a/rfb/rfbclient.h b/rfb/rfbclient.h index b38f335..34c8737 100644 --- a/rfb/rfbclient.h +++ b/rfb/rfbclient.h @@ -313,6 +313,9 @@ typedef struct _rfbClient { /* When the server is a repeater, this specifies the final destination */ char *destHost; int destPort; + + /* the QoS IP DSCP for this client */ + int QoS_DSCP; } rfbClient; /* cursor.c */ @@ -388,6 +391,7 @@ extern int ConnectClientToTcpAddr6(const char *hostname, int port); extern int ConnectClientToUnixSock(const char *sockFile); extern int AcceptTcpConnection(int listenSock); extern rfbBool SetNonBlocking(int sock); +extern rfbBool SetDSCP(int sock, int dscp); extern rfbBool StringToIPAddr(const char *str, unsigned int *addr); extern rfbBool SameMachine(int sock); -- cgit v1.2.1