Documentation
¶
Index ¶
- Constants
- Variables
- 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
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 ¶
View Source
var (
ErrInvalidUDPData = errors.New("invalid udp data")
)
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 ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.
