Documentation
¶
Overview ¶
Package sockopt provides cross-platform ways to interact with socket options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HasHopLimit ¶
type HasHopLimit interface { // HopLimit returns the hop limit field value for outgoing packets. HopLimit() (int, error) // SetHopLimit sets the hop limit field value for future outgoing packets. SetHopLimit(hoplim int) error }
HasHopLimit enables manipulation of the hop limit option.
type TCPOptions ¶
type TCPOptions interface { HasHopLimit }
TCPOptions represents options for TCP connections.
func NewTCPOptions ¶
func NewTCPOptions(conn *net.TCPConn) (TCPOptions, error)
NewTCPOptions creates a TCPOptions for the given net.TCPConn.
Click to show internal directories.
Click to hide internal directories.