listener

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewListenerWithConfig

func NewListenerWithConfig(ctx context.Context, conf *Config) packet.ListenConfig

Types

type Config

type Config struct {
	Network packet.NetworkEnum
	Address string
}

type Listener

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

func NewListener

func NewListener(network string, address string) *Listener

func (*Listener) ListenPacket

func (n *Listener) ListenPacket(ctx context.Context) (packet.Packet, error)

Jump to

Keyboard shortcuts

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