Class Qos
This class handles setting the Differentiated Services Code Point (DSCP) for both IPv4 and IPv6 for both Windows and Linux. The Windows terminology is Quality of Service (QOS).
Inherited Members
Namespace: SipLib.Channels
Assembly: SipLib.dll
Syntax
public class Qos
Constructors
| Edit this page View SourceQos()
Constructor
Declaration
public Qos()
Methods
| Edit this page View SourceSetTcpDscp(TcpClient, uint, IPEndPoint)
Sets the DSCP bits in the TOS field of the IP packets sent by the UdpClient. In Windows this is done by adding the UDP socket handle to a QOS flow. In Linux this is done by setting the socket options.
Declaration
public void SetTcpDscp(TcpClient tcpClient, uint DscpValue, IPEndPoint RemIpe)
Parameters
Type | Name | Description |
---|---|---|
TcpClient | tcpClient | TcpClient object to the DSCP value for. The socket must be in the connected state. |
uint | DscpValue | DSCP value to set. Must be between 0x00 and 0x3f inclusive. |
IPEndPoint | RemIpe | Remote IP endpoint of the socket. |
SetUdpDscp(UdpClient, uint)
Sets the DSCP bits in the TOS field of the IP packets sent by the UdpClient. In Windows this is done by adding the UDP socket handle to a QOS flow. In Linux this is done by setting the socket options.
Declaration
public void SetUdpDscp(UdpClient udpClient, uint DscpValue)
Parameters
Type | Name | Description |
---|---|---|
UdpClient | udpClient | UdpClient to set the DSCP value for. |
uint | DscpValue | DSCP value to set. Must be between 0x00 and 0x3f inclusive. |
Shutdown()
When running under Windows, this method must be called before the UDP/TCP connection is closed to remove the socket handle from the QOS flow and to release the handle to the Windows QOS subsystem. It is not necessary to call this method when running under Linux. Calling it performs no action.
Declaration
public void Shutdown()