Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransportChannel ¶
type TransportChannel interface { Close() error SendPacket(pkt []byte, client TransportChannelClientID) ReceivePacket() ([]byte, TransportChannelClientID) }
func NewUDP ¶
func NewUDP(Net, ServerAddress string) (TransportChannel, error)
type TransportChannelClientID ¶
type TransportChannelClientID interface{}
20 bytes is enough for ipv6 + port
Click to show internal directories.
Click to hide internal directories.