udplistener

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package udplistener provides a UDP-based Listener.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(network, address string) (net.Listener, error)

New allocates a Listener.

Types

type Listener

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

Listener is a UDP listener.

func (*Listener) Accept

func (l *Listener) Accept() (net.Conn, error)

Accept implements the net.Listener interface.

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

Addr implements the net.Listener interface.

func (*Listener) Close

func (l *Listener) Close() error

Close implements the net.Listener interface.

Jump to

Keyboard shortcuts

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