handshake

package
v0.0.0-...-ed75f63 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Status = iota + 1
	Login
	Transfer
)
View Source
const PacketIdHandshaking = 0x00

serverbound

Variables

This section is empty.

Functions

This section is empty.

Types

type Handshaking

type Handshaking struct {
	ProtocolVersion int32
	ServerAddress   string
	ServerPort      uint16
	NextState       int32
}

func (*Handshaking) Decode

func (h *Handshaking) Decode(r encoding.Reader) error

func (Handshaking) Encode

func (h Handshaking) Encode(w encoding.Writer) error

func (Handshaking) ID

func (Handshaking) ID() int32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳