network

package
v0.0.0-...-3a29b05 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error string
const (
	NotSupportedOpcode Error = "This opcode is not supported by the server"
)

func (Error) Error

func (n Error) Error() string

type INetwork

type INetwork interface {
	Unmarshal(opcode uint16, b []byte) (in.IIn, error)
	Marshal(packet out.IOut) ([]byte, error)
}

type Network

type Network struct {
	// contains filtered or unexported fields
}

func NewNetwork

func NewNetwork() *Network

func (*Network) Marshal

func (n *Network) Marshal(packet out.IOut) ([]byte, error)

func (*Network) Unmarshal

func (n *Network) Unmarshal(opcode uint16, b []byte) (in.IIn, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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