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
Click to show internal directories.
Click to hide internal directories.