From f049b3cc2bf9611fcd72827f5f383e9e5b17f7f6 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 18 Oct 2016 00:12:09 +0200 Subject: [PATCH] comments --- common/net/address.proto | 3 +++ common/net/network.proto | 7 +++++++ common/protocol/user.proto | 2 ++ 3 files changed, 12 insertions(+) diff --git a/common/net/address.proto b/common/net/address.proto index 58a1c27d7..368eafa59 100644 --- a/common/net/address.proto +++ b/common/net/address.proto @@ -7,7 +7,10 @@ option java_outer_classname = "AddressProto"; message IPOrDomain { oneof address { + // IP address. Must by either 4 or 16 bytes. bytes ip = 1; + + // Domain address. string domain = 2; } } \ No newline at end of file diff --git a/common/net/network.proto b/common/net/network.proto index 7383715b7..2d911f4e4 100644 --- a/common/net/network.proto +++ b/common/net/network.proto @@ -7,10 +7,17 @@ option java_outer_classname = "NetworkProto"; enum Network { Unknown = 0; + + // Native TCP provided by system. RawTCP = 1; + + // V2Ray specific TCP. TCP = 2; + UDP = 3; + KCP = 4; + WebSocket = 5; } diff --git a/common/protocol/user.proto b/common/protocol/user.proto index 7a6b800ad..15f3e1201 100644 --- a/common/protocol/user.proto +++ b/common/protocol/user.proto @@ -10,5 +10,7 @@ import "v2ray.com/core/common/loader/type.proto"; message User { uint32 level = 1; string email = 2; + + // Protocol specific account information. v2ray.core.common.loader.TypedSettings account = 3; } \ No newline at end of file