packet

package
v1.1.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RPC_PACKET_FLAG = [2]byte{0xEF, 0xEE}
)

Functions

This section is empty.

Types

type DataPacket

type DataPacket struct {
	PacketHeader
	Data []byte
}

func (*DataPacket) Pack

func (p *DataPacket) Pack(writer io.Writer) error

func (*DataPacket) Unpack

func (p *DataPacket) Unpack(reader io.Reader) error

type PacketHeader

type PacketHeader struct {
	ProtocolId uint16
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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