Documentation
¶
Index ¶
- Constants
- func Daemon(godaemon bool)
- func DecodeCipherMethod(b byte) string
- func EncodeCipherMethod(m string) byte
- func PrintVersion()
- func UpdateConfig(old, ne *Config)
- type Config
- type ConnState
- func (cs *ConnState) CloseWait(conn io.ReadWriteCloser) *ConnState
- func (cs *ConnState) Closed(conn io.ReadWriteCloser) *ConnState
- func (cs *ConnState) Closing(conn io.ReadWriteCloser) *ConnState
- func (cs *ConnState) FINWait1(conn io.ReadWriteCloser) *ConnState
- func (cs *ConnState) FINWait2(conn io.ReadWriteCloser) *ConnState
- func (cs *ConnState) LastACK(conn io.ReadWriteCloser) *ConnState
- func (cs *ConnState) TimeWait(conn io.ReadWriteCloser) *ConnState
- type ConnStateFn
- type Easyss
- func (ss *Easyss) Close()
- func (ss *Easyss) GetLogFileFullPathName() string
- func (ss *Easyss) HttpLocal()
- func (ss *Easyss) InitTcpPool() error
- func (ss *Easyss) Local()
- func (ss *Easyss) LocalAddr() string
- func (ss *Easyss) LocalPort() int
- func (ss *Easyss) Remote()
- func (ss *Easyss) ServerPort() int
- func (ss *Easyss) TCPHandle(s *socks5.Server, conn *net.TCPConn, r *socks5.Request) error
- func (ss *Easyss) UDPHandle(s *socks5.Server, addr *net.UDPAddr, d *socks5.Datagram) error
- type Statistics
Constants ¶
View Source
const ( LogMaxAge = 24 * time.Hour LogRotationTime = 12 * time.Hour )
View Source
const ( ESTABLISHED state = iota FIN_WAIT1 FIN_WAIT2 LAST_ACK CLOSING CLOSE_WAIT TIME_WAIT CLOSED )
Variables ¶
This section is empty.
Functions ¶
func DecodeCipherMethod ¶
func EncodeCipherMethod ¶
func PrintVersion ¶
func PrintVersion()
func UpdateConfig ¶
func UpdateConfig(old, ne *Config)
Types ¶
type Config ¶
type Config struct {
Server string `json:"server"`
ServerPort int `json:"server_port"`
LocalPort int `json:"local_port"`
Password string `json:"password"`
Method string `json:"method"` // encryption method
Timeout int `json:"timeout"`
}
func ParseConfig ¶
type ConnState ¶
type ConnState struct {
// contains filtered or unexported fields
}
func NewConnState ¶
type ConnStateFn ¶
type ConnStateFn func(conn io.ReadWriteCloser) *ConnState
type Easyss ¶
func (*Easyss) GetLogFileFullPathName ¶
func (*Easyss) InitTcpPool ¶
func (*Easyss) ServerPort ¶
type Statistics ¶ added in v1.1.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.
