Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // VERSION is injected by buildflags VERSION = "SELFBUILD" // SALT is use for pbkdf2 key expansion SALT = "kcp-go" )
Functions ¶
Types ¶
type Config ¶
type Config struct { LocalAddr string `json:"localaddr"` RemoteAddr string `json:"remoteaddr"` Key string `json:"key"` Crypt string `json:"crypt"` Mode string `json:"mode"` Conn int `json:"conn"` AutoExpire int `json:"autoexpire"` ScavengeTTL int `json:"scavengettl"` MTU int `json:"mtu"` SndWnd int `json:"sndwnd"` RcvWnd int `json:"rcvwnd"` DataShard int `json:"datashard"` ParityShard int `json:"parityshard"` DSCP int `json:"dscp"` NoComp bool `json:"nocomp"` AckNodelay bool `json:"acknodelay"` NoDelay int `json:"nodelay"` Interval int `json:"interval"` Resend int `json:"resend"` NoCongestion int `json:"nc"` SockBuf int `json:"sockbuf"` KeepAlive int `json:"keepalive"` Log string `json:"log"` SnmpLog string `json:"snmplog"` SnmpPeriod int `json:"snmpperiod"` Quiet bool `json:"quiet"` }
Config for client
func ParseConfig ¶
Click to show internal directories.
Click to hide internal directories.