Documentation ¶
Overview ¶
Package dscp provides helper functions to apply DSCP / ECN / CoS flags to sockets.
Index ¶
- func DialTCPTimeoutWithTOS(laddr, raddr *net.TCPAddr, tos byte, timeout time.Duration) (net.Conn, error)
- func DialTCPWithTOS(laddr, raddr *net.TCPAddr, tos byte) (*net.TCPConn, error)
- func DialTimeoutWithTOS(network, address string, timeout time.Duration, tos byte) (net.Conn, error)
- func ListenTCPWithTOS(address *net.TCPAddr, tos byte) (*net.TCPListener, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialTCPTimeoutWithTOS ¶
func DialTCPTimeoutWithTOS(laddr, raddr *net.TCPAddr, tos byte, timeout time.Duration) (net.Conn, error)
DialTCPTimeoutWithTOS is same as DialTimeoutWithTOS except for enforcing "tcp" and providing an option to specify local address (source)
func DialTCPWithTOS ¶
DialTCPWithTOS is similar to net.DialTCP but with the socket configured to the use the given ToS (Type of Service), to specify DSCP / ECN / class of service flags to use for incoming connections.
func DialTimeoutWithTOS ¶
DialTimeoutWithTOS is similar to net.DialTimeout but with the socket configured to the use the given ToS (Type of Service), to specify DSCP / ECN / class of service flags to use for incoming connections.
func ListenTCPWithTOS ¶
ListenTCPWithTOS is similar to net.ListenTCP but with the socket configured to the use the given ToS (Type of Service), to specify DSCP / ECN / class of service flags to use for incoming connections.
Types ¶
This section is empty.