udplite

package
v0.13.12 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPPROTO_UDPLITE    = 136
	SOL_UDPLITE        = 136
	UDPLITE_SEND_CSCOV = 10
	UDPLITE_RECV_CSCOV = 11
)

https://www.kernel.org/doc/Documentation/networking/udplite.txt

Variables

This section is empty.

Functions

func NewEndpoint

func NewEndpoint(endpoint string, _ ...any) (p2p.EndPoint, error)

Types

type Conn

type Conn net.UDPConn

func (*Conn) Close

func (conn *Conn) Close() error

func (*Conn) LocalAddr

func (conn *Conn) LocalAddr() p2p.EndPoint

func (*Conn) ReadFromPeer

func (conn *Conn) ReadFromPeer(b []byte) (int, p2p.EndPoint, error)

func (*Conn) String

func (conn *Conn) String() string

func (*Conn) WriteToPeer

func (conn *Conn) WriteToPeer(b []byte, ep p2p.EndPoint) (int, error)

type EndPoint

type EndPoint net.UDPAddr

func (*EndPoint) Euqal

func (ep *EndPoint) Euqal(ep2 p2p.EndPoint) bool

func (*EndPoint) Listen

func (ep *EndPoint) Listen() (p2p.Conn, error)

func (*EndPoint) Network

func (ep *EndPoint) Network() string

func (*EndPoint) String

func (ep *EndPoint) String() string

Jump to

Keyboard shortcuts

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