handshaking

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerBoundHandshakePacketID byte = 0x00

	ServerBoundHandshakeStatusState = protocol.Byte(1)
	ServerBoundHandshakeLoginState  = protocol.Byte(2)

	ForgeSeparator  = "\x00"
	RealIPSeparator = "///"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerBoundHandshake

type ServerBoundHandshake struct {
	ProtocolVersion protocol.VarInt
	ServerAddress   protocol.String
	ServerPort      protocol.UnsignedShort
	NextState       protocol.Byte
}

func UnmarshalServerBoundHandshake

func UnmarshalServerBoundHandshake(packet protocol.Packet) (ServerBoundHandshake, error)

func (ServerBoundHandshake) IsForgeAddress

func (pk ServerBoundHandshake) IsForgeAddress() bool

func (ServerBoundHandshake) IsLoginRequest

func (pk ServerBoundHandshake) IsLoginRequest() bool

func (ServerBoundHandshake) IsRealIPAddress

func (pk ServerBoundHandshake) IsRealIPAddress() bool

func (ServerBoundHandshake) IsStatusRequest

func (pk ServerBoundHandshake) IsStatusRequest() bool

func (ServerBoundHandshake) Marshal

func (pk ServerBoundHandshake) Marshal() protocol.Packet

func (ServerBoundHandshake) ParseServerAddress

func (pk ServerBoundHandshake) ParseServerAddress() string

func (*ServerBoundHandshake) UpgradeToRealIP

func (pk *ServerBoundHandshake) UpgradeToRealIP(clientAddr net.Addr, timestamp time.Time)

Jump to

Keyboard shortcuts

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