config.proto 978 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 Config {
  32. MTU mtu = 1;
  33. TTI tti = 2;
  34. UplinkCapacity uplink_capacity = 3;
  35. DownlinkCapacity downlink_capacity = 4;
  36. bool congestion = 5;
  37. WriteBuffer write_buffer = 6;
  38. ReadBuffer read_buffer = 7;
  39. v2ray.core.common.loader.TypedSettings header_config = 8;
  40. }