forwarder

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SocksProtocol = "/port-forward/socks/1.0.0"
View Source
const TcpProtocol = "/port-forward/tcp/1.0.0"

Variables

This section is empty.

Functions

func HandleSocks

func HandleSocks(ctx context.Context, node *p2p.LocalNode, peerId peer.ID, conn net.Conn)

func HandleSocksServer

func HandleSocksServer(server *socks5.Server, stream network.Stream)

func HandleTcp added in v0.0.2

func HandleTcp(ctx context.Context, node *p2p.LocalNode, peerId peer.ID, conn net.Conn, port int)

func HandleTcpServer added in v0.0.2

func HandleTcpServer(port int, stream network.Stream)

Types

This section is empty.

Jump to

Keyboard shortcuts

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