protocol

package
v0.0.0-...-04673a4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION = 001
	MAX_LEN = 10240
)

Variables

This section is empty.

Functions

func Encode

func Encode(w io.Writer, msg *Msg) error

Types

type Head struct {
	Type uint8
	Todo uint8 // todo
	Len  uint16
}

type Msg

type Msg struct {
	Head
	Content []byte
}

func Decode

func Decode(r io.Reader) (*Msg, error)

Jump to

Keyboard shortcuts

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