config.proto 903 B

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