config.proto 1.5 KB

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