Documentation ¶
Index ¶
- func DisconnectPacket(version mpacket.Version, message *util.Chat) *packet.OutgoingPacket
- func HasVersion(v mpacket.Version) bool
- func IncomingToProto(p *packet.IncomingPacket, version mpacket.Version) (*pb.Packet, error)
- func OutgoingFromProto(version mpacket.Version, proto *pb.Packet, buffer, garbage_buffer []byte) *packet.OutgoingPacket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisconnectPacket ¶
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 IncomingToProto ¶
func OutgoingFromProto ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.