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 #ifndef BLIMP_NET_COMMON_H_ | 5 #ifndef BLIMP_NET_COMMON_H_ |
6 #define BLIMP_NET_COMMON_H_ | 6 #define BLIMP_NET_COMMON_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "blimp/net/blimp_net_export.h" | 10 #include "blimp/net/blimp_net_export.h" |
11 #include "net/base/ip_address_number.h" | |
11 | 12 |
12 namespace blimp { | 13 namespace blimp { |
13 | 14 |
14 class BlimpMessage; | 15 class BlimpMessage; |
15 | 16 |
16 // TODO(kmarshall): Apply SCIENCE to determine a better constant here. | 17 // TODO(kmarshall): Apply SCIENCE to determine a better constant here. |
17 // See crbug.com/542464 | 18 // See crbug.com/542464 |
18 extern const size_t BLIMP_NET_EXPORT kMaxPacketPayloadSizeBytes; | 19 extern const size_t BLIMP_NET_EXPORT kMaxPacketPayloadSizeBytes; |
19 extern const size_t BLIMP_NET_EXPORT kPacketHeaderSizeBytes; | 20 extern const size_t BLIMP_NET_EXPORT kPacketHeaderSizeBytes; |
20 | 21 |
22 extern const uint16_t BLIMP_NET_EXPORT kDefaultTcpPort; | |
haibinlu
2015/12/29 00:51:46
this is engine's default port. the port will be ma
Kevin M
2015/12/30 23:08:49
It's OK here though, right?
| |
23 | |
24 // Creates an IPAddressNumber object for "0.0.0.0" (aka INADDR_ANY). | |
25 net::IPAddressNumber BLIMP_NET_EXPORT GetIPV4AnyAddress(); | |
26 | |
21 } // namespace blimp | 27 } // namespace blimp |
22 | 28 |
23 #endif // BLIMP_NET_COMMON_H_ | 29 #endif // BLIMP_NET_COMMON_H_ |
OLD | NEW |