inbound

package
v0.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2016 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasePacket

type BasePacket struct {
	ID          uint16
	Content     []byte
	Initialised bool
}

BasePacket is the most basic type of packet that must then be converted into an actual packet.

func GetPacket

func GetPacket(i io.Reader) (b BasePacket, errF error)

GetPacket returns an bancho packet.

func (BasePacket) Unmarshal

func (b BasePacket) Unmarshal(results ...interface{}) error

Unmarshal decodes some data from Content and puts it into an interface.

Jump to

Keyboard shortcuts

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