taps

package
v0.0.0-...-84940ad Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NETWORK_IP    = "IP"
	NETWORK_IPV4  = "IPv4"
	NETWORK_IPV6  = "IPv6"
	NETWORK_SCION = "SCION"

	TRANSPORT_UDP  = "UDP"
	TRANSPORT_TCP  = "TCP"
	TRANSPORT_QUIC = "QUIC"
)

Variables

This section is empty.

Functions

func GetFlags

func GetFlags(network, address, transport *string)

func NewLocalEndpoint

func NewLocalEndpoint() *network.Endpoint

func NewRemoteEndpoint

func NewRemoteEndpoint() *network.Endpoint

Types

type Listener

type Listener struct {
	ConnectionReceived chan network.Connection
	// contains filtered or unexported fields
}

func (*Listener) Stop

func (l *Listener) Stop() error

type Message

type Message string

func (Message) String

func (m Message) String() string

type Preconnection

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

func NewPreconnection

func NewPreconnection(e *network.Endpoint) (Preconnection, error)

func (*Preconnection) Initiate

func (p *Preconnection) Initiate() (network.Connection, error)

func (*Preconnection) Listen

func (p *Preconnection) Listen() Listener

Jump to

Keyboard shortcuts

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