types

package
v0.0.0-...-2a33acd Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisconnectPacket

func DisconnectPacket(version mpacket.Version, message *util.Chat) *packet.OutgoingPacket

This generates a disconnect packet for the given version, during play state If the version is invalid, then a login state disconnect packet is sent, which is always id 0, and doesn't use this function This is used for if the backend server disconnects, and we need to disconnect a client for some reason. If a backend server crashes, we can usually just redirect the client, so this is not used very often. This is only used if the proxy cannot find any server to connect the client to, which should never happen.

func HasVersion

func HasVersion(v mpacket.Version) bool

func IncomingToProto

func IncomingToProto(p *packet.IncomingPacket, version mpacket.Version) (*pb.Packet, error)

func OutgoingFromProto

func OutgoingFromProto(version mpacket.Version, proto *pb.Packet, buffer, garbage_buffer []byte) *packet.OutgoingPacket

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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