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