multilisten

package
v0.0.0-...-f835cdf Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package multilisten implements listening on multiple addresses at once.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPv6Net1

func IPv6Net1(dir string) (string, error)

IPv6Net1 returns the IP address which router7 picks from the IPv6 prefix for itself, e.g. address 2a02:168:4a00::1 for prefix 2a02:168:4a00::/48.

Types

type Listener

type Listener interface {
	ListenAndServe() error
	Close() error
}

type Pool

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

func NewPool

func NewPool() *Pool

func (*Pool) ListenAndServe

func (p *Pool) ListenAndServe(hosts []string, listenerFor func(host string) Listener)

Jump to

Keyboard shortcuts

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