1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-23 02:26:49 -05:00
v2fly/transport/internet/kcp/config.go
2016-06-17 17:38:42 +02:00

26 lines
443 B
Go

package kcp
type Config struct {
Mtu int // Maximum transmission unit
Sndwnd int // Sending window size
Rcvwnd int // Receiving window size
Acknodelay bool // Acknoledge without delay
}
func (this *Config) Apply() {
effectiveConfig = *this
}
func DefaultConfig() Config {
return Config{
Mtu: 1350,
Sndwnd: 1024,
Rcvwnd: 1024,
Acknodelay: true,
}
}
var (
effectiveConfig = DefaultConfig()
)