constant

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DialTimeOut = 3 * time.Second

	SniffTimeOut = 300 * time.Millisecond

	SmuxGCDuration       = 30 * time.Second
	SmuxMaxAliveDuration = 10 * time.Minute
	SmuxMaxStreamCnt     = 5

	// todo add udp buffer size
	BUFFER_POOL_SIZE = 1024      // support 512 connections
	BUFFER_SIZE      = 20 * 1024 // 20KB the maximum packet size of shadowsocks is about 16 KiB
)
View Source
const (
	// tcp relay
	RelayTypeRaw  = "raw"
	RelayTypeMTCP = "mtcp"

	// ws relay
	RelayTypeWS   = "ws"
	RelayTypeMWS  = "mws"
	RelayTypeWSS  = "wss"
	RelayTypeMWSS = "mwss"
)

relay type

Variables

View Source
var (
	// allow change in test
	IdleTimeOut = 10 * time.Second

	Version     = "1.1.4"
	GitBranch   string
	GitRevision string
	BuildTime   string
	StartTime   = time.Now().Local()
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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