1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00
v2fly/transport/internet/kcp/config.proto

69 lines
1.5 KiB
Protocol Buffer
Raw Normal View History

2016-09-21 08:39:07 -04:00
syntax = "proto3";
2016-09-26 09:14:16 -04:00
package v2ray.core.transport.internet.kcp;
2016-12-22 18:24:28 -05:00
option csharp_namespace = "V2Ray.Core.Transport.Internet.Kcp";
option go_package = "github.com/v2fly/v2ray-core/v5/transport/internet/kcp";
2016-09-26 09:14:16 -04:00
option java_package = "com.v2ray.core.transport.internet.kcp";
2017-02-03 17:15:10 -05:00
option java_multiple_files = true;
2016-09-21 08:39:07 -04:00
import "google/protobuf/any.proto";
2016-09-21 08:39:07 -04:00
2021-10-10 10:00:17 -04:00
import "common/protoext/extensions.proto";
2016-09-21 15:08:05 -04: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 02:58:31 -05:00
message ConnectionReuse {
bool enable = 1;
}
// Maximum Transmission Unit, in bytes.
message EncryptionSeed {
string seed = 1;
}
2016-09-21 08:39:07 -04:00
message Config {
2021-10-10 10:00:17 -04:00
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";
2016-09-21 15:08:05 -04:00
MTU mtu = 1;
TTI tti = 2;
UplinkCapacity uplink_capacity = 3;
DownlinkCapacity downlink_capacity = 4;
2016-09-21 08:39:07 -04:00
bool congestion = 5;
2016-09-21 15:08:05 -04:00
WriteBuffer write_buffer = 6;
ReadBuffer read_buffer = 7;
2021-06-19 09:36:54 -04:00
google.protobuf.Any header_config = 8;
reserved 9;
EncryptionSeed seed = 10;
}