encrypted

package
v0.0.0-...-e5e0dbf Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debug

type Debug struct {
	// contains filtered or unexported fields
}

func (*Debug) GetSessions

func (d *Debug) GetSessions() (infos []DebugSessionInfo)

type DebugSessionInfo

type DebugSessionInfo struct {
	Key    ed25519.PublicKey
	Uptime time.Duration
	RX     uint64
	TX     uint64
}

type PacketConn

type PacketConn struct {
	*network.PacketConn

	Debug Debug
	// contains filtered or unexported fields
}

func NewPacketConn

func NewPacketConn(secret ed25519.PrivateKey) (*PacketConn, error)

NewPacketConn returns a *PacketConn struct which implements the types.PacketConn interface.

func (*PacketConn) MTU

func (pc *PacketConn) MTU() uint64

MTU returns the maximum transmission unit of the PacketConn, i.e. maximum safe message size to send over the network.

func (*PacketConn) Read

func (pc *PacketConn) Read() (p []byte, from net.Addr, err error)

func (*PacketConn) ReadFrom

func (pc *PacketConn) ReadFrom(p []byte) (n int, from net.Addr, err error)

func (*PacketConn) WriteTo

func (pc *PacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error)

Directories

Path Synopsis
internal
e2c

Jump to

Keyboard shortcuts

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