Documentation
¶
Index ¶
Constants ¶
View Source
const ( IPV6_TRANSPARENT = 75 IPV6_RECVORIGDSTADDR = 74 )
View Source
const ( // UDPConnTrackTimeout is the timeout used for UDP connection tracking UDPConnTrackTimeout = 90 * time.Second // UDPBufSize is the buffer size for the UDP proxy UDPBufSize = 65507 )
View Source
const (
DefaultDialTimeout = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func DialUDP ¶
DialUDP connects to the remote address raddr on the network net, which must be "udp", "udp4", or "udp6". If laddr is not nil, it is used as the local address for the connection.
func ReadFromUDP ¶
ReadFromUDP reads a UDP packet from c, copying the payload into b. It returns the number of bytes copied into b and the return address that was on the packet.
Out-of-band data is also read in so that the original destination address can be identified and parsed.
Types ¶
type RawConnContainer ¶
Click to show internal directories.
Click to hide internal directories.