signed

package
v0.0.0-...-064b279 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketConn

type PacketConn struct {
	*network.PacketConn
	// contains filtered or unexported fields
}

func NewPacketConn

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

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

func (*PacketConn) MTU

func (pc *PacketConn) MTU() uint64

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)

Jump to

Keyboard shortcuts

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