Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBufferWith ¶
func NewDefaultHandler ¶
func NewDefaultHandler(compressionThreshold int) network.PacketManager
Types ¶
type Packets ¶
type Packets struct {
// contains filtered or unexported fields
}
func (*Packets) GetCompression ¶
func (*Packets) GetPlayFunc ¶
func (*Packets) RemoveHandler ¶
func (p *Packets) RemoveHandler(id network.PacketInput)
func (*Packets) SetHandler ¶
func (p *Packets) SetHandler(id network.PacketInput, handler func(c network.Connection, packet network.PacketI))
Click to show internal directories.
Click to hide internal directories.