github.com/xraypb/Xray-core@v1.8.1/transport/internet/kcp/config.proto (about)

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