constant

package
v1.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultDialTimeOut  = 3 * time.Second
	DefaultReadTimeOut  = 5 * time.Second
	DefaultIdleTimeOut  = 10 * time.Second
	DefaultSniffTimeOut = 300 * time.Millisecond

	// todo,support config in relay config
	BUFFER_POOL_SIZE = 1024      // support 512 connections
	BUFFER_SIZE      = 40 * 1024 // 40KB ,the maximum packet size of shadowsocks is about 16 KiB so this is enough
	UDPBufSize       = 1500      // use default max mtu 1500
)

Variables

View Source
var (
	Version     = "1.1.5"
	GitBranch   string
	GitRevision string
	BuildTime   string
	StartTime   = time.Now().Local()
)

Functions

This section is empty.

Types

type RelayType added in v1.1.5

type RelayType string
const (
	// direct relay
	RelayTypeRaw RelayType = "raw"
	// ws relay
	RelayTypeWS  RelayType = "ws"
	RelayTypeWSS RelayType = "wss"
)

relay type

Jump to

Keyboard shortcuts

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