core

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// simplified server-side tcp states
	CLOSED      tcpState = 0x0
	SYN_RCVD    tcpState = 0x1
	ESTABLISHED tcpState = 0x2
	FIN_WAIT_1  tcpState = 0x3
	FIN_WAIT_2  tcpState = 0x4
	CLOSING     tcpState = 0x5
	LAST_ACK    tcpState = 0x6
	TIME_WAIT   tcpState = 0x7

	MAX_RECV_WINDOW int = 65535
	MAX_SEND_WINDOW int = 65535
)
View Source
const (
	MTU = 1500
)

Variables

This section is empty.

Functions

func GetMTU

func GetMTU() []byte

func PutMTU

func PutMTU(buf []byte)

Types

type Tun2Socks

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

func New

func New(dev io.ReadWriteCloser, socksAddress string, dnsAddresses []string, publicOnly bool, enableDNSCache bool) *Tun2Socks

func (*Tun2Socks) Run

func (t2s *Tun2Socks) Run()

func (*Tun2Socks) Stop

func (t2s *Tun2Socks) Stop()

Jump to

Keyboard shortcuts

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