OLD | NEW |
---|---|
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 |
OLD | NEW |