Versions in this module Expand all Collapse all v0 v0.0.3 Jun 15, 2021 Changes in this version + const ActionData + const ActionPing + const ActionPong + const DefaultHeadLength + const DefaultProtocolVersion + type CustomLengthFieldProtocol struct + ActionType uint16 + Data []byte + DataLength uint32 + Version uint16 + func (cc *CustomLengthFieldProtocol) Decode(c gnet.Conn) ([]byte, error) + func (cc *CustomLengthFieldProtocol) Encode(c gnet.Conn, buf []byte) ([]byte, error)