packets

package
v0.0.0-...-424b381 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const PING_PACKET byte = 69
View Source
const PONG_PACKET byte = 252

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStream

type DataStream struct {
	Data     []byte
	Length   uint
	Finished bool
	// contains filtered or unexported fields
}

func NewDataStream

func NewDataStream(data []byte, len uint) *DataStream

func (*DataStream) ReadByte

func (s *DataStream) ReadByte() (byte, error)

func (*DataStream) ReadBytes

func (s *DataStream) ReadBytes(n uint) ([]byte, error)

Jump to

Keyboard shortcuts

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