protocommon

package
v0.0.0-...-d395cb5 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package protocommon contains functions and definitions for both TCPROS and UDPROS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeaderDecode

func HeaderDecode(raw HeaderRaw, header Header) error

HeaderDecode decodes an header in binary format.

func HeaderEncode

func HeaderEncode(w io.Writer, header Header) error

HeaderEncode encodes an header in binary format.

func MessageDecode

func MessageDecode(r io.Reader, msg interface{}) error

MessageDecode decodes a message in binary format.

func MessageEncode

func MessageEncode(w io.Writer, msg interface{}) error

MessageEncode encodes a message in binary format.

Types

type Header interface {
	IsHeader()
}

Header is an header.

type HeaderRaw

type HeaderRaw map[string]string

HeaderRaw is a raw header.

func HeaderRawDecode

func HeaderRawDecode(r io.Reader) (HeaderRaw, error)

HeaderRawDecode decodes a raw header in binary format.

Jump to

Keyboard shortcuts

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