mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-19 02:46:33 -05:00
23 lines
766 B
Go
23 lines
766 B
Go
package kcpv
|
|
|
|
type AdvancedConfig struct {
|
|
Mtu int `json:"MaximumTransmissionUnit"`
|
|
Sndwnd int `json:"SendingWindowSize"`
|
|
Rcvwnd int `json:"ReceivingWindowSize"`
|
|
Fec int `json:"ForwardErrorCorrectionGroupSize"`
|
|
Acknodelay bool `json:"AcknowledgeNoDelay"`
|
|
Dscp int `json:"Dscp"`
|
|
ReadTimeout int `json:"ReadTimeout"`
|
|
WriteTimeout int `json:"WriteTimeout"`
|
|
}
|
|
|
|
type Config struct {
|
|
Mode string `json:"Mode"`
|
|
Key string `json:"EncryptionKey"`
|
|
AdvancedConfigs *AdvancedConfig `json:"AdvancedConfig,omitempty"`
|
|
}
|
|
|
|
var DefaultAdvancedConfigs = &AdvancedConfig{
|
|
Mtu: 1350, Sndwnd: 1024, Rcvwnd: 1024, Fec: 4, Dscp: 0, ReadTimeout: 60, WriteTimeout: 40, Acknodelay: false,
|
|
}
|