tcptun

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTCPTunServer

func NewTCPTunServer(s string, p proxy.Proxy) (proxy.Server, error)

NewTCPTunServer returns a udp tunnel server.

Types

type TCPTun

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

TCPTun struct.

func NewTCPTun

func NewTCPTun(s string, p proxy.Proxy) (*TCPTun, error)

NewTCPTun returns a tcptun proxy.

func (*TCPTun) ListenAndServe

func (s *TCPTun) ListenAndServe()

ListenAndServe listens on server's addr and serves connections.

func (*TCPTun) Serve added in v0.6.9

func (s *TCPTun) Serve(c net.Conn)

Serve serves a connection.

Jump to

Keyboard shortcuts

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