port_forward

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewForward

func NewForward(targetNetwork, targetAddress string, dialTLSConfig *tls.Config) servers.Protocol

Types

type Forward

type Forward struct {
	TargetNetwork                    string
	TargetAddress                    string
	DialFunc                         servers.DialFunc
	ListenAddress                    *net.TCPAddr
	IncomingSniffer, OutgoingSniffer io.Writer
	DialTLSConfig                    *tls.Config
}

func (*Forward) Handle

func (f *Forward) Handle(clientConnection net.Conn) error

func (*Forward) SetAuthenticationMethod

func (f *Forward) SetAuthenticationMethod(_ servers.AuthenticationMethod)

func (*Forward) SetDial

func (f *Forward) SetDial(dialFunc servers.DialFunc)

func (*Forward) SetListen

func (f *Forward) SetListen(_ servers.ListenFunc)

func (*Forward) SetListenAddress

func (f *Forward) SetListenAddress(address net.Addr)

func (*Forward) SetSniffers

func (f *Forward) SetSniffers(incoming, outgoing io.Writer)

Jump to

Keyboard shortcuts

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