Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUDPHopPacketConn ¶
func NewUDPHopPacketConn(addr *UDPHopAddr, hopInterval time.Duration, listenUDPFunc ListenUDPFunc) (net.PacketConn, error)
Types ¶
type InvalidPortError ¶
type InvalidPortError struct {
PortStr string
}
func (InvalidPortError) Error ¶
func (e InvalidPortError) Error() string
type ListenUDPFunc ¶
type ListenUDPFunc = func() (net.PacketConn, error)
type UDPHopAddr ¶
UDPHopAddr contains an IP address and a list of ports.
func ResolveUDPHopAddr ¶
func ResolveUDPHopAddr(addr 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.