Documentation ¶
Index ¶
Constants ¶
View Source
const ( BinaryType byte = iota StringType )
Payload type
View Source
const MaxPacketSize uint32 = 10 << 20 // 10MBytes
View Source
const Timeout = 30 // seconds
Variables ¶
View Source
var ErrMaxPacketSize = errors.New("maximum packet size exceeded")
Functions ¶
func RunTcpTimer ¶
func RunTcpTimer()
Types ¶
type ServerManager ¶
func (*ServerManager) Listen ¶
func (s *ServerManager) Listen()
func (*ServerManager) OnClientConnectionClosed ¶
func (s *ServerManager) OnClientConnectionClosed(c *Client, err error)
Click to show internal directories.
Click to hide internal directories.