saatja

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

README

saatja

Simple simplex protocol for internal use in Mapicom

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePacket

func CreatePacket(source, destination [4]byte, content []byte) ([]byte, error)

Types

type SaatjaHeader

type SaatjaHeader struct {
	Destination [4]byte
	Source      [4]byte
	Length      uint16
	Checksum    byte
}

type SaatjaPacket

type SaatjaPacket struct {
	SaatjaHeader
	Content []byte
}

func ParsePacket

func ParsePacket(content []byte) (*SaatjaPacket, error)

Jump to

Keyboard shortcuts

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