rpc

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RPC_MAGIC = [4]byte{'p', 'y', 'x', 'i'}

Functions

func DecodePacket

func DecodePacket(r io.Reader) ([]byte, error)

func EncodePacket

func EncodePacket(w io.Writer, payload []byte) error

Types

type Packet

type Packet struct {
	TotalSize uint32
	Magic     [4]byte
	Payload   []byte
	Checksum  uint32
}

Jump to

Keyboard shortcuts

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