Versions in this module Expand all Collapse all v1 v1.0.0 Sep 27, 2023 Changes in this version + func InterfaceForSource(ip net.IP) (*net.Interface, error) + type Conn interface + SetReadBuffer func(int) error + func NewMultiConn(address string, ...) (Conn, error) + func NewSingleConn(intf *net.Interface, address string, ...) (Conn, error) + type MultiConn struct + func (c *MultiConn) Close() error + func (c *MultiConn) LocalAddr() net.Addr + func (c *MultiConn) ReadFrom(b []byte) (int, net.Addr, error) + func (c *MultiConn) SetDeadline(_ time.Time) error + func (c *MultiConn) SetReadBuffer(bytes int) error + func (c *MultiConn) SetReadDeadline(t time.Time) error + func (c *MultiConn) SetWriteDeadline(t time.Time) error + func (c *MultiConn) WriteTo(b []byte, addr net.Addr) (int, error) + type SingleConn struct + func (c *SingleConn) Close() error + func (c *SingleConn) LocalAddr() net.Addr + func (c *SingleConn) ReadFrom(b []byte) (int, net.Addr, error) + func (c *SingleConn) SetDeadline(_ time.Time) error + func (c *SingleConn) SetReadBuffer(bytes int) error + func (c *SingleConn) SetReadDeadline(t time.Time) error + func (c *SingleConn) SetWriteDeadline(t time.Time) error + func (c *SingleConn) WriteTo(b []byte, addr net.Addr) (int, error)