# Functions
ConnectTCP connects to host:port in TCP.
IsConnectionError check if the error is a connection error (close).
NewBufferedWriteConnection creates a new connection with buffered write based on underlying connection.
NewPacket allocates a new packet.
NewPacketConnection creates a packet connection based on network connection.
PackFloat32 packs float32 in specified byte order.
ServeTCP serves on specified address as TCP server.
ServeTCPForever serves on specified address as TCP server, for ever ...
UnpackFloat32 unpacks float32 in specified byte order.
# Variables
MSG_PACKER is used for packing and unpacking network data.
NETWORK_ENDIAN is the network Endian of connections.
# Structs
BufferedConnection provides buffered write to connections.
GobMsgPacker packs and unpacks message in golang's Gob format.
JsoniterMsgPacker packs and unpacks messages in JSON format.
JsoniterMsgPacker packs and unpacks messages in JSON format.
MessagePackMsgPacker packs and unpacks message in MessagePack format.
NetConnection converts net.Conn to Connection.
Packet is a packet for sending data.
PacketConnection is a connection that send and receive data packets upon a network stream connection.
# Interfaces
Connection interface for connections to servers.
MsgPacker is used to packs and unpacks messages.
TCPServerDelegate is the implementations that a TCP server should provide.