config.proto 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. syntax = "proto3";
  2. package v2ray.core.transport.internet.kcp;
  3. option csharp_namespace = "V2Ray.Core.Transport.Internet.Kcp";
  4. option go_package = "kcp";
  5. option java_package = "com.v2ray.core.transport.internet.kcp";
  6. option java_multiple_files = true;
  7. import "v2ray.com/core/common/serial/typed_message.proto";
  8. // Maximum Transmission Unit, in bytes.
  9. message MTU {
  10. uint32 value = 1;
  11. }
  12. // Transmission Time Interview, in milli-sec.
  13. message TTI {
  14. uint32 value = 1;
  15. }
  16. // Uplink capacity, in MB.
  17. message UplinkCapacity {
  18. uint32 value = 1;
  19. }
  20. // Downlink capacity, in MB.
  21. message DownlinkCapacity {
  22. uint32 value = 1;
  23. }
  24. message WriteBuffer {
  25. // Buffer size in bytes.
  26. uint32 size = 1;
  27. }
  28. message ReadBuffer {
  29. // Buffer size in bytes.
  30. uint32 size = 1;
  31. }
  32. message ConnectionReuse {
  33. bool enable = 1;
  34. }
  35. message Config {
  36. MTU mtu = 1;
  37. TTI tti = 2;
  38. UplinkCapacity uplink_capacity = 3;
  39. DownlinkCapacity downlink_capacity = 4;
  40. bool congestion = 5;
  41. WriteBuffer write_buffer = 6;
  42. ReadBuffer read_buffer = 7;
  43. v2ray.core.common.serial.TypedMessage header_config = 8;
  44. reserved 9;
  45. }