| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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_BASE_WINPING_H__ | 11 #ifndef WEBRTC_BASE_WINPING_H__ |
| 12 #define WEBRTC_BASE_WINPING_H__ | 12 #define WEBRTC_BASE_WINPING_H__ |
| 13 | 13 |
| 14 #if defined(WEBRTC_WIN) | 14 #if defined(WEBRTC_WIN) |
| 15 | 15 |
| 16 #include "webrtc/base/win32.h" | 16 #include "webrtc/base/win32.h" |
| 17 #include "webrtc/base/basictypes.h" | 17 #include "webrtc/base/basictypes.h" |
| 18 #include "webrtc/base/IPAddress.h" | 18 #include "webrtc/base/ipaddress.h" |
| 19 | 19 |
| 20 namespace rtc { | 20 namespace rtc { |
| 21 | 21 |
| 22 // This class wraps a Win32 API for doing ICMP pinging. This API, unlike the | 22 // This class wraps a Win32 API for doing ICMP pinging. This API, unlike the |
| 23 // the normal socket APIs (as implemented on Win9x), will return an error if | 23 // the normal socket APIs (as implemented on Win9x), will return an error if |
| 24 // an ICMP packet with the dont-fragment bit set is too large. This means this | 24 // an ICMP packet with the dont-fragment bit set is too large. This means this |
| 25 // class can be used to detect the MTU to a given address. | 25 // class can be used to detect the MTU to a given address. |
| 26 | 26 |
| 27 typedef struct ip_option_information { | 27 typedef struct ip_option_information { |
| 28 UCHAR Ttl; // Time To Live | 28 UCHAR Ttl; // Time To Live |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 char* reply_; | 96 char* reply_; |
| 97 uint32_t rlen_; | 97 uint32_t rlen_; |
| 98 bool valid_; | 98 bool valid_; |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace rtc | 101 } // namespace rtc |
| 102 | 102 |
| 103 #endif // WEBRTC_WIN | 103 #endif // WEBRTC_WIN |
| 104 | 104 |
| 105 #endif // WEBRTC_BASE_WINPING_H__ | 105 #endif // WEBRTC_BASE_WINPING_H__ |
| OLD | NEW |