Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2758)

Unified Diff: blimp/net/common.cc

Issue 1551583003: Implementation and fixes for Blimp client/engine E2E communication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dtrainor-linux-cl1528243002
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: blimp/net/common.cc
diff --git a/blimp/net/common.cc b/blimp/net/common.cc
index 1663b300534f03ff610710b6d2630a5f7c04c427..b10bb086aa882198c4281354a58956b47c0b6104 100644
--- a/blimp/net/common.cc
+++ b/blimp/net/common.cc
@@ -4,9 +4,21 @@
#include "blimp/net/common.h"
+#include "net/base/ip_address_number.h"
+
namespace blimp {
const size_t kMaxPacketPayloadSizeBytes = 1 << 16; // 64KB
const size_t kPacketHeaderSizeBytes = 4;
+const uint16_t kDefaultTcpPort = 25467;
+
+net::IPAddressNumber GetIPV4AnyAddress() {
haibinlu 2015/12/29 00:51:46 nit, IPv4?
Kevin M 2015/12/30 23:08:49 Done.
+ net::IPAddressNumber output;
+ output.push_back(0);
+ output.push_back(0);
+ output.push_back(0);
+ output.push_back(0);
+ return output;
+}
} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698