Documentation ¶
Index ¶
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) Listen(packets chan Packet, quit chan struct{})
- func (c *Conn) MakeUDPSocket(ifaces []net.Interface) (err error)
- func (c *Conn) Multicast(b []byte) error
- func (c *Conn) SendTo(b []byte, dst *net.UDPAddr) error
- func (c *Conn) SetMulticastTTL(ttl int) error
- func (c *Conn) SetPort(mPort, lPort, rPort int)
- type IPv4PacketConnFactory
- type IPv6PacketConnFactory
- type Packet
- type PacketConnFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func NewConn ¶
func NewConn(mAddr, lAddr, rAddr *net.UDPAddr, lFactory, rFactory PacketConnFactory, ttl int) *Conn
func (*Conn) SetMulticastTTL ¶
type IPv4PacketConnFactory ¶
func (*IPv4PacketConnFactory) MakeUDPSocket ¶
func (f *IPv4PacketConnFactory) MakeUDPSocket(ifaces []net.Interface, addr *net.UDPAddr, ttl int) (net.PacketConn, error)
type IPv6PacketConnFactory ¶
func (*IPv6PacketConnFactory) MakeUDPSocket ¶
func (f *IPv6PacketConnFactory) MakeUDPSocket(ifaces []net.Interface, addr *net.UDPAddr, ttl int) (net.PacketConn, error)
type Packet ¶
Packet A small struct used to send received UDP packets and information about their interface / source address through a channel.
type PacketConnFactory ¶
Click to show internal directories.
Click to hide internal directories.