net

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(pack MessagePack) (bytes.Buffer, error)

Encode encodes the message into binary data

Types

type MessagePack

type MessagePack interface {
	Type() utp.MessageType
	Info() utp.Info
}

MessagePack is the interface for all Messages

func Read

func Read(r io.Reader) (MessagePack, error)

Read unpacks the packet from the provided reader.

Jump to

Keyboard shortcuts

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