packets

package
v0.0.0-...-3031d2e Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoginFailed        = -1
	LoginNeedUpdate    = -2
	LoginBanned        = -4
	LoginError         = -5
	LoginNeedSupporter = -6
)

Variables

This section is empty.

Functions

func Handle

func Handle(token string, input []byte, output io.Writer, bancho bancho.Bancho) string

func Login

func Login(input []byte, b bancho.Bancho) ([]byte, string)

Types

type Packet

type Packet []byte

func LoginReply

func LoginReply(code int32) Packet

func Make

func Make(h PacketType, dataLen uint32, data interface{}) Packet

type PacketType

type PacketType int16

Jump to

Keyboard shortcuts

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