github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/kcp/config.proto (about)

     1  syntax = "proto3";
     2  
     3  package v2ray.core.transport.internet.kcp;
     4  option csharp_namespace = "V2Ray.Core.Transport.Internet.Kcp";
     5  option go_package = "github.com/v2fly/v2ray-core/v5/transport/internet/kcp";
     6  option java_package = "com.v2ray.core.transport.internet.kcp";
     7  option java_multiple_files = true;
     8  
     9  import "google/protobuf/any.proto";
    10  
    11  import "common/protoext/extensions.proto";
    12  
    13  // Maximum Transmission Unit, in bytes.
    14  message MTU {
    15    uint32 value = 1;
    16  }
    17  
    18  // Transmission Time Interview, in milli-sec.
    19  message TTI {
    20    uint32 value = 1;
    21  }
    22  
    23  // Uplink capacity, in MB.
    24  message UplinkCapacity {
    25    uint32 value = 1;
    26  }
    27  
    28  // Downlink capacity, in MB.
    29  message DownlinkCapacity {
    30    uint32 value = 1;
    31  }
    32  
    33  message WriteBuffer {
    34    // Buffer size in bytes.
    35    uint32 size = 1;
    36  }
    37  
    38  message ReadBuffer {
    39    // Buffer size in bytes.
    40    uint32 size = 1;
    41  }
    42  
    43  message ConnectionReuse {
    44    bool enable = 1;
    45  }
    46  
    47  // Maximum Transmission Unit, in bytes.
    48  message EncryptionSeed {
    49    string seed = 1;
    50  }
    51  
    52  message Config {
    53    option (v2ray.core.common.protoext.message_opt).type = "transport";
    54    option (v2ray.core.common.protoext.message_opt).short_name = "kcp";
    55    option (v2ray.core.common.protoext.message_opt).allow_restricted_mode_load = true;
    56  
    57    option (v2ray.core.common.protoext.message_opt).transport_original_name = "mkcp";
    58  
    59    MTU mtu = 1;
    60    TTI tti = 2;
    61    UplinkCapacity uplink_capacity = 3;
    62    DownlinkCapacity downlink_capacity = 4;
    63    bool congestion = 5;
    64    WriteBuffer write_buffer = 6;
    65    ReadBuffer read_buffer = 7;
    66    google.protobuf.Any header_config = 8;
    67    reserved 9;
    68    EncryptionSeed seed = 10;
    69  }