localswitch

package
v0.0.0-...-d0e3dbc Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalSwitchHttpClient

func NewLocalSwitchHttpClient(lswitch *LocalSwitch, trafficIndex uint8) *http.Client

Types

type LocalSwitch

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

func StartNewLocalSwitch

func StartNewLocalSwitch() (*LocalSwitch, error)

func (*LocalSwitch) AddTrafficConsumer

func (l *LocalSwitch) AddTrafficConsumer(trafficIndex uint8, consumer multiplexer.TrafficConsumer)

func (*LocalSwitch) Connect

func (l *LocalSwitch) Connect(trafficIndex uint8) (net.Conn, error)

func (*LocalSwitch) SwitchAddr

func (l *LocalSwitch) SwitchAddr() string

type LocalSwitchNetListener

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

func NewLocalSwitchNetListener

func NewLocalSwitchNetListener() *LocalSwitchNetListener

func (*LocalSwitchNetListener) Accept

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

func (*LocalSwitchNetListener) Addr

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

func (*LocalSwitchNetListener) Close

func (l *LocalSwitchNetListener) Close() error

func (*LocalSwitchNetListener) PublishNetConn

func (l *LocalSwitchNetListener) PublishNetConn(conn net.Conn)

Jump to

Keyboard shortcuts

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