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

Side by Side 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 4 years, 12 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "blimp/net/common.h" 5 #include "blimp/net/common.h"
6 6
7 #include "net/base/ip_address_number.h"
8
7 namespace blimp { 9 namespace blimp {
8 10
9 const size_t kMaxPacketPayloadSizeBytes = 1 << 16; // 64KB 11 const size_t kMaxPacketPayloadSizeBytes = 1 << 16; // 64KB
10 const size_t kPacketHeaderSizeBytes = 4; 12 const size_t kPacketHeaderSizeBytes = 4;
13 const uint16_t kDefaultTcpPort = 25467;
14
15 net::IPAddressNumber GetIPV4AnyAddress() {
haibinlu 2015/12/29 00:51:46 nit, IPv4?
Kevin M 2015/12/30 23:08:49 Done.
16 net::IPAddressNumber output;
17 output.push_back(0);
18 output.push_back(0);
19 output.push_back(0);
20 output.push_back(0);
21 return output;
22 }
11 23
12 } // namespace blimp 24 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698