OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2011 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 |
(...skipping 28 matching lines...) Expand all Loading... |
39 // The task is automatically aborted after a timeout. | 39 // The task is automatically aborted after a timeout. |
40 sigslot::signal0<> SignalTimeout; | 40 sigslot::signal0<> SignalTimeout; |
41 | 41 |
42 private: | 42 private: |
43 // Implementation of MessageHandler. | 43 // Implementation of MessageHandler. |
44 virtual void OnMessage(rtc::Message* msg); | 44 virtual void OnMessage(rtc::Message* msg); |
45 | 45 |
46 rtc::MessageQueue* message_queue_; | 46 rtc::MessageQueue* message_queue_; |
47 uint32_t ping_period_millis_; | 47 uint32_t ping_period_millis_; |
48 uint32_t ping_timeout_millis_; | 48 uint32_t ping_timeout_millis_; |
49 uint32_t next_ping_time_; | 49 int64_t next_ping_time_; |
50 uint32_t ping_response_deadline_; // 0 if the response has been received | 50 int64_t ping_response_deadline_; // 0 if the response has been received |
51 }; | 51 }; |
52 | 52 |
53 } // namespace buzz | 53 } // namespace buzz |
54 | 54 |
55 #endif // WEBRTC_LIBJINGLE_XMPP_PINGTASK_H_ | 55 #endif // WEBRTC_LIBJINGLE_XMPP_PINGTASK_H_ |
OLD | NEW |