framing

package
v0.0.0-...-796008b Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2016 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdData = iota
	CmdHandshake
	CmdAuthenticate

	CmdServer     = 0x80
	CmdServerMask = 0x7f
)

The various commands for each message carried via the framing layer. Each command is 7 bits, with the most significant bit, signifying the direction.

View Source
const (
	// MaxIPv4TcpSize is the typical Ethernet IPv4 TCP MSS.
	MaxIPv4TcpSize = 1500 - (20 + 20)

	// MaxIPv6TcpSize is the typical Ethernet IPv6 TCP MSS.
	MaxIPv6TcpSize = 1500 - (40 + 20)
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package tentp implements the framing layer portion of the Trivial Encrypted Network Transport Protocol, a lightweight XChaCha20 + Poly1305 based authentication/encryption protocol for streams with reliable-in-order delivery semantics.
Package tentp implements the framing layer portion of the Trivial Encrypted Network Transport Protocol, a lightweight XChaCha20 + Poly1305 based authentication/encryption protocol for streams with reliable-in-order delivery semantics.

Jump to

Keyboard shortcuts

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