github.com/imannamdari/v2ray-core/v5@v5.0.5/transport/internet/kcp/config.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core.transport.internet.kcp; 4 option csharp_namespace = "V2Ray.Core.Transport.Internet.Kcp"; 5 option go_package = "github.com/imannamdari/v2ray-core/v5/transport/internet/kcp"; 6 option java_package = "com.v2ray.core.transport.internet.kcp"; 7 option java_multiple_files = true; 8 9 import "google/protobuf/any.proto"; 10 11 import "common/protoext/extensions.proto"; 12 13 // Maximum Transmission Unit, in bytes. 14 message MTU { 15 uint32 value = 1; 16 } 17 18 // Transmission Time Interview, in milli-sec. 19 message TTI { 20 uint32 value = 1; 21 } 22 23 // Uplink capacity, in MB. 24 message UplinkCapacity { 25 uint32 value = 1; 26 } 27 28 // Downlink capacity, in MB. 29 message DownlinkCapacity { 30 uint32 value = 1; 31 } 32 33 message WriteBuffer { 34 // Buffer size in bytes. 35 uint32 size = 1; 36 } 37 38 message ReadBuffer { 39 // Buffer size in bytes. 40 uint32 size = 1; 41 } 42 43 message ConnectionReuse { 44 bool enable = 1; 45 } 46 47 // Maximum Transmission Unit, in bytes. 48 message EncryptionSeed { 49 string seed = 1; 50 } 51 52 message Config { 53 option (v2ray.core.common.protoext.message_opt).type = "transport"; 54 option (v2ray.core.common.protoext.message_opt).short_name = "kcp"; 55 56 option (v2ray.core.common.protoext.message_opt).transport_original_name = "mkcp"; 57 58 MTU mtu = 1; 59 TTI tti = 2; 60 UplinkCapacity uplink_capacity = 3; 61 DownlinkCapacity downlink_capacity = 4; 62 bool congestion = 5; 63 WriteBuffer write_buffer = 6; 64 ReadBuffer read_buffer = 7; 65 google.protobuf.Any header_config = 8; 66 reserved 9; 67 EncryptionSeed seed = 10; 68 }