Versions in this module Expand all Collapse all v0 v0.2.17 Dec 28, 2019 v0.2.15 Dec 28, 2019 Changes in this version + func GetUDPAddr(address string) (sendAddr *net.UDPAddr) + type Connection struct + SendConn []*net.UDPConn + func NewConnection(send, listen, preSharedKey string, maxDatagramSize int, ctx context.Context, ...) (c *Connection, err error) + func (c *Connection) CreateShards(b, magic []byte) (shards [][]byte, err error) + func (c *Connection) Listen(handlers HandleFunc, ifc interface{}, lastSent *time.Time, firstSender *string) (err error) + func (c *Connection) Send(b, magic []byte) (err error) + func (c *Connection) SendShards(shards [][]byte) (err error) + func (c *Connection) SendShardsTo(shards [][]byte, addr *net.UDPAddr) (err error) + func (c *Connection) SendTo(addr *net.UDPAddr, b, magic []byte) (err error) + func (c *Connection) SetSendConn(ad ...string) (err error) + type HandleFunc map[string]func(ctx interface{}) func(b []byte) (err error) + type MsgBuffer struct + Buffers [][]byte + Decoded bool + First time.Time + Source *net.Addr