minecraft

package
v0.0.0-...-a5406a4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrSuccessfullyHandledMOTDRequest means the Minecraft client requested for MOTD
	// and has been correctly handled by program. This used to skip the data forward
	// process and directly go to the end of this connection.
	ErrSuccessfullyHandledMOTDRequest         = errors.New("handled MOTD")
	ErrRejectedLoginAccessControl             = errors.New("interrupted by access control")
	ErrRejectedLoginPlayerNumberLimitExceeded = errors.New("rejected due to player number limit exceeded")
	ErrBadPlayerName                          = errors.New("rejected due to bad player name")
)

Functions

func NewConnHandler

func NewConnHandler(s *config.ConfigProxyService,
	ctx *transfer.ConnContext,
	c net.Conn,
	options *transfer.Options,
) (net.Conn, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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