local

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOCAL = &Local{
	Dialer:       &net.Dialer{},
	ListenConfig: &net.ListenConfig{},
	LocalAddr:    warp.NewNetAddr("local", "local"),
}

Functions

This section is empty.

Types

type Local

type Local struct {
	Dialer       bridge.Dialer
	ListenConfig bridge.ListenConfig
	LocalAddr    net.Addr
}

func (*Local) CommandDialContext

func (l *Local) CommandDialContext(ctx context.Context, name string, args ...string) (net.Conn, error)

func (*Local) CommandListen added in v0.6.8

func (l *Local) CommandListen(ctx context.Context, name string, args ...string) (net.Listener, error)

func (*Local) DialContext

func (l *Local) DialContext(ctx context.Context, network, address string) (net.Conn, error)

func (*Local) Listen

func (l *Local) Listen(ctx context.Context, network, address string) (net.Listener, error)

Jump to

Keyboard shortcuts

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