Documentation
¶
Index ¶
Constants ¶
View Source
const ( DialTimeOut = 3 * time.Second SmuxGCDuration = 30 * time.Second SmuxMaxAliveDuration = 1 * time.Hour SmuxMaxStreamCnt = 5 Listen_RAW = "raw" Listen_WS = "ws" Listen_WSS = "wss" Listen_MWSS = "mwss" Listen_MTCP = "mtcp" Transport_RAW = "raw" Transport_WS = "ws" Transport_WSS = "wss" Transport_MWSS = "mwss" Transport_MTCP = "mtcp" // 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 )
Variables ¶
View Source
var ( // allow change in test IdleTimeOut = 10 * time.Second Version = "1.1.3" GitBranch string GitRevision string BuildTime string IndexHTMLTMPL = `<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <h2>ehco is a network relay tool and a typo :)</h2> <hr> <h3>Version: ` + Version + `</h3> <h3>GitBranch: ` + GitBranch + `</h3> <h3>GitRevision: ` + GitRevision + `</h3> <h3>BuildTime: ` + BuildTime + `</h3> <hr> <p><a href="https://github.com/Ehco1996/ehco">More information here</a></p> <p><a href="/metrics/">Metrics</a></p> <p><a href="/debug/pprof/">Debug</a></p> </body> </html> ` )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.