tcp

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseConnection

func CloseConnection(conn net.Conn)

func CloseConnectionDebug added in v1.2.7

func CloseConnectionDebug(conn net.Conn)

func ResolveAddr added in v1.2.1

func ResolveAddr(addr string) *net.TCPAddr

Types

type Host

type Host struct {
	HostName string
	Port     uint64
}

type WebForwarder

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

func NewWebForwarder

func NewWebForwarder(connId uint64, src net.Conn, secure bool) *WebForwarder

func (*WebForwarder) SetDstAddress

func (fwd *WebForwarder) SetDstAddress(dstAddress string)

func (*WebForwarder) SetLogger added in v1.2.6

func (fwd *WebForwarder) SetLogger(l *logger.BaseLogger)

func (*WebForwarder) SetSNI added in v1.2.6

func (fwd *WebForwarder) SetSNI(sni string)

func (*WebForwarder) SetTrjConfig added in v1.2.6

func (fwd *WebForwarder) SetTrjConfig(trjAddress, trjWsPath string)

func (*WebForwarder) Start

func (fwd *WebForwarder) Start()

Jump to

Keyboard shortcuts

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