Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUDPHopPacketConn ¶
func NewUDPHopPacketConn(addrStr string, hopPorts string, hopInterval time.Duration, listenPacket ListenPacketFunc) (net.PacketConn, error)
Types ¶
type InvalidPortError ¶
type InvalidPortError struct {
PortStr string
}
func (InvalidPortError) Error ¶
func (e InvalidPortError) Error() string
type ListenPacketFunc ¶
type ListenPacketFunc func() (net.PacketConn, error)
type UDPHopAddr ¶
UDPHopAddr contains an IP address and a list of ports.
func ResolveUDPHopAddr ¶
func ResolveUDPHopAddr(addr, portStr string) (*UDPHopAddr, error)
func (*UDPHopAddr) Network ¶
func (a *UDPHopAddr) Network() string
func (*UDPHopAddr) String ¶
func (a *UDPHopAddr) String() string
Click to show internal directories.
Click to hide internal directories.