frame

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FrameHeaderLen = 2
)

Frame: frameHeader + framePayload(packet)

frameHeader: uint16, 2 bytes => length of frame payload (Packet) framePayload: Packet

Variables

This section is empty.

Functions

This section is empty.

Types

type FramePayload

type FramePayload []byte

type StreamFrameCodec

type StreamFrameCodec interface {
	Encode(io.Writer, FramePayload) error
	Decode(io.Reader) (FramePayload, error)
}

func NewFrameCodec

func NewFrameCodec() StreamFrameCodec

Jump to

Keyboard shortcuts

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