udpendpoint

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SO_REUSEPORT = 0xf

SO_REUSEPORT reuseport flag for sockets

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPEndpoint

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

UDPEndpoint endpoint based on udp protocol

func NewUDPEndpoint

func NewUDPEndpoint(address string, chain *resolver.ResolverChain) *UDPEndpoint

NewUDPEndpoint create a new udp enpoint with the given chain

func (*UDPEndpoint) SetChain

func (e *UDPEndpoint) SetChain(chain *resolver.ResolverChain)

SetChain implements server.Endpoint

func (*UDPEndpoint) Start

func (e *UDPEndpoint) Start(ctx context.Context, wg *sync.WaitGroup)

Start implements server.Endpoint

Jump to

Keyboard shortcuts

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