OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 rtc::SocketAddress addr_; | 95 rtc::SocketAddress addr_; |
96 rtc::scoped_ptr<rtc::ByteBuffer> response_packet_; | 96 rtc::scoped_ptr<rtc::ByteBuffer> response_packet_; |
97 | 97 |
98 std::vector<Request*> requests_; | 98 std::vector<Request*> requests_; |
99 std::vector<rtc::SocketAddress> server_ips_; | 99 std::vector<rtc::SocketAddress> server_ips_; |
100 int16 num_request_sent_ = 0; | 100 int16 num_request_sent_ = 0; |
101 int16 num_response_received_ = 0; | 101 int16 num_response_received_ = 0; |
102 | 102 |
103 rtc::ThreadChecker& thread_checker_; | 103 rtc::ThreadChecker& thread_checker_; |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(Requester); | 105 RTC_DISALLOW_COPY_AND_ASSIGN(Requester); |
106 }; | 106 }; |
107 | 107 |
108 StunProber::Requester::Requester( | 108 StunProber::Requester::Requester( |
109 StunProber* prober, | 109 StunProber* prober, |
110 rtc::AsyncPacketSocket* socket, | 110 rtc::AsyncPacketSocket* socket, |
111 const std::vector<rtc::SocketAddress>& server_ips) | 111 const std::vector<rtc::SocketAddress>& server_ips) |
112 : prober_(prober), | 112 : prober_(prober), |
113 socket_(socket), | 113 socket_(socket), |
114 response_packet_(new rtc::ByteBuffer(nullptr, kMaxUdpBufferSize)), | 114 response_packet_(new rtc::ByteBuffer(nullptr, kMaxUdpBufferSize)), |
115 server_ips_(server_ips), | 115 server_ips_(server_ips), |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 if (!finished_callback_.empty()) { | 525 if (!finished_callback_.empty()) { |
526 AsyncCallback callback = finished_callback_; | 526 AsyncCallback callback = finished_callback_; |
527 finished_callback_ = AsyncCallback(); | 527 finished_callback_ = AsyncCallback(); |
528 | 528 |
529 // Callback at the last since the prober might be deleted in the callback. | 529 // Callback at the last since the prober might be deleted in the callback. |
530 callback(this, status); | 530 callback(this, status); |
531 } | 531 } |
532 } | 532 } |
533 | 533 |
534 } // namespace stunprober | 534 } // namespace stunprober |
OLD | NEW |