common

package
v0.5.28 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadLine added in v0.5.23

func ReadLine(conn io.Reader) (string, error)

func YamuxClient added in v0.5.18

func YamuxClient(conn io.ReadWriteCloser) (*yamux.Session, error)

relay

func YamuxConfig added in v0.5.18

func YamuxConfig() *yamux.Config

func YamuxServer added in v0.5.18

func YamuxServer(conn io.ReadWriteCloser) (*yamux.Session, error)

client

Types

type Listener

type Listener struct {
	Session tunnel.Session
	Scheme  string
	Address string // host[:port][/path/]
}

Listener implements net.Listener

func (*Listener) Accept

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

calling Accept returns a new net.Conn

func (*Listener) Addr

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

Addr returns Listener itself which is an implementor of net.Addr

func (*Listener) Close

func (l *Listener) Close() error

func (*Listener) Network

func (l *Listener) Network() string

Network returns the protocol scheme, either http or https

func (*Listener) String

func (l *Listener) String() string

String returns the host(:port) address of Listener

Jump to

Keyboard shortcuts

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