internal

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BufferPool = sync.Pool{
	New: func() any {
		return bytes.NewBuffer(make([]byte, 0, 256))
	},
}

Functions

This section is empty.

Types

type Conn added in v0.0.10

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

func NewConn added in v0.0.10

func NewConn(conn io.ReadWriteCloser, authentication util.Authentication, pool packet.Pool) (c *Conn, err error)

func (*Conn) ChunkRadius added in v0.0.10

func (c *Conn) ChunkRadius() int

ChunkRadius ...

func (*Conn) ClientCacheEnabled added in v0.0.10

func (c *Conn) ClientCacheEnabled() bool

ClientCacheEnabled ...

func (*Conn) ClientData added in v0.0.10

func (c *Conn) ClientData() login.ClientData

ClientData ...

func (*Conn) Close added in v0.0.10

func (c *Conn) Close() (err error)

Close ...

func (*Conn) Flush added in v0.0.10

func (c *Conn) Flush() error

Flush ...

func (*Conn) IdentityData added in v0.0.10

func (c *Conn) IdentityData() login.IdentityData

IdentityData ...

func (*Conn) Latency added in v0.0.10

func (c *Conn) Latency() time.Duration

Latency ...

func (*Conn) ReadPacket added in v0.0.10

func (c *Conn) ReadPacket() (packet.Packet, error)

ReadPacket ...

func (*Conn) RemoteAddr added in v0.0.10

func (c *Conn) RemoteAddr() net.Addr

RemoteAddr ...

func (*Conn) StartGameContext added in v0.0.10

func (c *Conn) StartGameContext(_ context.Context, data minecraft.GameData) (err error)

StartGameContext ...

func (*Conn) WritePacket added in v0.0.10

func (c *Conn) WritePacket(pk packet.Packet) error

WritePacket ...

Jump to

Keyboard shortcuts

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