OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_TRANSPORT_H_ | 11 #ifndef WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_TRANSPORT_H_ |
12 #define WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_TRANSPORT_H_ | 12 #define WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_TRANSPORT_H_ |
13 | 13 |
14 #include "webrtc/common_types.h" | 14 #include "webrtc/common_types.h" |
| 15 #include "webrtc/transport.h" |
15 #include "webrtc/typedefs.h" | 16 #include "webrtc/typedefs.h" |
16 | 17 |
17 /* | 18 /* |
18 * WARNING | 19 * WARNING |
19 * This code is not use in production/testing and might have security issues | 20 * This code is not use in production/testing and might have security issues |
20 * for example: http://code.google.com/p/webrtc/issues/detail?id=1028 | 21 * for example: http://code.google.com/p/webrtc/issues/detail?id=1028 |
21 * | 22 * |
22 */ | 23 */ |
23 | 24 |
24 #define SS_MAXSIZE 128 | 25 #define SS_MAXSIZE 128 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 // Return true if ipaddr is a valid IP address. | 372 // Return true if ipaddr is a valid IP address. |
372 // If ipV6 is false ipaddr is interpreted as an IPv4 address otherwise it | 373 // If ipV6 is false ipaddr is interpreted as an IPv4 address otherwise it |
373 // is interptreted as IPv6. | 374 // is interptreted as IPv6. |
374 static bool IsIpAddressValid(const char* ipaddr, const bool ipV6); | 375 static bool IsIpAddressValid(const char* ipaddr, const bool ipV6); |
375 }; | 376 }; |
376 | 377 |
377 } // namespace test | 378 } // namespace test |
378 } // namespace webrtc | 379 } // namespace webrtc |
379 | 380 |
380 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_TRANSPORT_H_ | 381 #endif // WEBRTC_TEST_CHANNEL_TRANSPORT_UDP_TRANSPORT_H_ |
OLD | NEW |