msgapi

package
v0.0.0-...-8380604 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SingleFrame = uint8(50) + iota
	MultipartFrameStart
	MultipartFrame
	MultipartFrameFinal
)

dataFrame type codes

View Source
const MinCommandLength = 35

MaxCommandLength is the maximum number of bytes a command is permitted to be. Note that bulk transfers are not subject to this restriction -- just the initial command.

Variables

View Source
var ErrEmptyData = errors.New("empty data")
View Source
var ErrIO = errors.New("i/o error")
View Source
var ErrInvalidFrame = errors.New("invalid data frame")
View Source
var ErrInvalidMsg = errors.New("invalid message")
View Source
var ErrInvalidMultipartFrame = errors.New("invalid multipart data frame")
View Source
var ErrMultipartSession = errors.New("multipart session error")
View Source
var ErrNoInit = errors.New("not initialized")
View Source
var ErrSize = errors.New("invalid size")

Functions

func ReadMessage

func ReadMessage(conn net.Conn, timeout time.Duration) ([]byte, error)

func WriteMessage

func WriteMessage(conn net.Conn, message []byte, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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