config.proto 1.0 KB

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