Documentation ¶
Index ¶
Constants ¶
View Source
const ( PACKET_ID_SIZE = 4 PACKET_LENGTH_SIZE = 2 PACKET_LIMIT = 8192 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NetPacketPool ¶
type NetPacketPool struct {
// contains filtered or unexported fields
}
func GetPool ¶
func GetPool() *NetPacketPool
func (*NetPacketPool) Get ¶
func (p *NetPacketPool) Get() *NetPacket
func (*NetPacketPool) Init ¶
func (p *NetPacketPool) Init()
func (*NetPacketPool) Put ¶
func (p *NetPacketPool) Put(netData *NetPacket)
Click to show internal directories.
Click to hide internal directories.