2016-09-21 12:39:07 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2016-09-26 13:14:16 +00:00
|
|
|
package v2ray.core.transport.internet.kcp;
|
2016-12-22 23:24:28 +00:00
|
|
|
option csharp_namespace = "V2Ray.Core.Transport.Internet.Kcp";
|
2016-09-21 12:39:07 +00:00
|
|
|
option go_package = "kcp";
|
2016-09-26 13:14:16 +00:00
|
|
|
option java_package = "com.v2ray.core.transport.internet.kcp";
|
2017-02-03 22:15:10 +00:00
|
|
|
option java_multiple_files = true;
|
2016-09-21 12:39:07 +00:00
|
|
|
|
2016-12-15 10:51:09 +00:00
|
|
|
import "v2ray.com/core/common/serial/typed_message.proto";
|
2016-09-21 12:39:07 +00:00
|
|
|
|
2016-09-21 19:08:05 +00:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
2016-11-27 07:58:31 +00:00
|
|
|
message ConnectionReuse {
|
|
|
|
bool enable = 1;
|
|
|
|
}
|
|
|
|
|
2016-09-21 12:39:07 +00:00
|
|
|
message Config {
|
2016-09-21 19:08:05 +00:00
|
|
|
MTU mtu = 1;
|
|
|
|
TTI tti = 2;
|
|
|
|
UplinkCapacity uplink_capacity = 3;
|
|
|
|
DownlinkCapacity downlink_capacity = 4;
|
2016-09-21 12:39:07 +00:00
|
|
|
bool congestion = 5;
|
2016-09-21 19:08:05 +00:00
|
|
|
WriteBuffer write_buffer = 6;
|
|
|
|
ReadBuffer read_buffer = 7;
|
2016-12-15 10:51:09 +00:00
|
|
|
v2ray.core.common.serial.TypedMessage header_config = 8;
|
2017-04-07 19:54:40 +00:00
|
|
|
reserved 9;
|
2016-09-21 12:39:07 +00:00
|
|
|
}
|