mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
351 B
24 lines
351 B
package kcp
|
|
|
|
type Config struct {
|
|
Mtu int // Maximum transmission unit
|
|
Sndwnd int // Sending window size
|
|
Rcvwnd int // Receiving window size
|
|
}
|
|
|
|
func (this *Config) Apply() {
|
|
effectiveConfig = *this
|
|
}
|
|
|
|
func DefaultConfig() Config {
|
|
return Config{
|
|
Mtu: 1350,
|
|
Sndwnd: 1024,
|
|
Rcvwnd: 1024,
|
|
}
|
|
}
|
|
|
|
var (
|
|
effectiveConfig = DefaultConfig()
|
|
)
|