network

package
v0.0.0-...-771882a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuffer

func NewBuffer() api_net.Buffer

new

func NewBufferWith

func NewBufferWith(bArray []byte) api_net.Buffer

func NewDefaultHandler

func NewDefaultHandler(compressionThreshold int) network.PacketManager

func StartNet

func StartNet(port int, host string, p *Packets) error

Types

type Certify

type Certify struct {
	// contains filtered or unexported fields
}

type Packets

type Packets struct {
	// contains filtered or unexported fields
}

func (*Packets) GetCompression

func (p *Packets) GetCompression() int

func (*Packets) GetPlayFunc

func (p *Packets) GetPlayFunc(id int32) func(c network.Connection, packet network.PacketI)

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))

Directories

Path Synopsis
client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL