tunnel

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tunnel

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

Tunnel represents a bidirectional tunnel between two connections.

func NewTunnel

func NewTunnel(addr string, remote transport.Stream) (*Tunnel, error)

NewTunnel creates a new tunnel instance.

func NewTunnelWithLocal

func NewTunnelWithLocal(local net.Conn, remote transport.Stream) *Tunnel

func (*Tunnel) Close

func (t *Tunnel) Close() error

Close closes both connections.

func (*Tunnel) Proxy

func (t *Tunnel) Proxy() error

Jump to

Keyboard shortcuts

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