ping

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0, BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MARSHALED_PACKET_HEADER = 0x00

	MARSHALED_PACKET_HEADER_START = 0
	MARSHALED_PACKET_HEADER_SIZE  = 1
	MARSHALED_PACKET_HEADER_END   = MARSHALED_PACKET_HEADER_START + MARSHALED_PACKET_HEADER_SIZE

	MARSHALED_TOTAL_SIZE = MARSHALED_PACKET_HEADER_END
)

Variables

View Source
var (
	ErrMalformedPingPacket = errors.New("malformed ping packet")
)

Functions

This section is empty.

Types

type Packet

type Packet struct{}

func Unmarshal

func Unmarshal(data []byte) (*Packet, error)

func (*Packet) Marshal

func (packet *Packet) Marshal() []byte

Jump to

Keyboard shortcuts

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