Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ControlMessage ¶
A ControlMessage represents per packet basis IP-level socket options.
type PacketConn ¶
type PacketConn interface { net.PacketConn ReadFromCM(b []byte) (n int, cm *ControlMessage, src net.Addr, err error) }
A PacketConn represents a packet network endpoint that uses the IPvX transport.
func NewPacketConn ¶
func NewPacketConn(network string, c net.PacketConn) (PacketConn, error)
NewPacketConn returns a new PacketConn using c as its underlying transport.
Click to show internal directories.
Click to hide internal directories.