Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(987)

Side by Side Diff: webrtc/examples/stunprober/main.cc

Issue 2969623003: Update includes for webrtc/{base => rtc_base} rename (2/3) (Closed)
Patch Set: Rebased onto 224e65939af87443addfc5bb500fbf434728bd1c and restored sorting in clock.cc Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 #include <stdio.h> 11 #include <stdio.h>
12 #include <stdlib.h> 12 #include <stdlib.h>
13 #include <string.h> 13 #include <string.h>
14 14
15 #include <iostream> 15 #include <iostream>
16 #include <map> 16 #include <map>
17 #include <memory> 17 #include <memory>
18 18
19 #include "webrtc/base/checks.h"
20 #include "webrtc/base/flags.h"
21 #include "webrtc/base/helpers.h"
22 #include "webrtc/base/nethelpers.h"
23 #include "webrtc/base/network.h"
24 #include "webrtc/base/logging.h"
25 #include "webrtc/base/ssladapter.h"
26 #include "webrtc/base/stringutils.h"
27 #include "webrtc/base/thread.h"
28 #include "webrtc/base/timeutils.h"
29 #include "webrtc/p2p/base/basicpacketsocketfactory.h" 19 #include "webrtc/p2p/base/basicpacketsocketfactory.h"
30 #include "webrtc/p2p/stunprober/stunprober.h" 20 #include "webrtc/p2p/stunprober/stunprober.h"
21 #include "webrtc/rtc_base/checks.h"
22 #include "webrtc/rtc_base/flags.h"
23 #include "webrtc/rtc_base/helpers.h"
24 #include "webrtc/rtc_base/logging.h"
25 #include "webrtc/rtc_base/nethelpers.h"
26 #include "webrtc/rtc_base/network.h"
27 #include "webrtc/rtc_base/ssladapter.h"
28 #include "webrtc/rtc_base/stringutils.h"
29 #include "webrtc/rtc_base/thread.h"
30 #include "webrtc/rtc_base/timeutils.h"
31 31
32 using stunprober::StunProber; 32 using stunprober::StunProber;
33 using stunprober::AsyncCallback; 33 using stunprober::AsyncCallback;
34 34
35 DEFINE_bool(help, false, "Prints this message"); 35 DEFINE_bool(help, false, "Prints this message");
36 DEFINE_int(interval, 10, "Interval of consecutive stun pings in milliseconds"); 36 DEFINE_int(interval, 10, "Interval of consecutive stun pings in milliseconds");
37 DEFINE_bool(shared_socket, false, "Share socket mode for different remote IPs"); 37 DEFINE_bool(shared_socket, false, "Share socket mode for different remote IPs");
38 DEFINE_int(pings_per_ip, 38 DEFINE_int(pings_per_ip,
39 10, 39 10,
40 "Number of consecutive stun pings to send for each IP"); 40 "Number of consecutive stun pings to send for each IP");
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 auto finish_callback = [thread](StunProber* prober, int result) { 131 auto finish_callback = [thread](StunProber* prober, int result) {
132 StopTrial(thread, prober, result); 132 StopTrial(thread, prober, result);
133 }; 133 };
134 prober->Start(server_addresses, FLAG_shared_socket, FLAG_interval, 134 prober->Start(server_addresses, FLAG_shared_socket, FLAG_interval,
135 FLAG_pings_per_ip, FLAG_timeout, 135 FLAG_pings_per_ip, FLAG_timeout,
136 AsyncCallback(finish_callback)); 136 AsyncCallback(finish_callback));
137 thread->Run(); 137 thread->Run();
138 delete prober; 138 delete prober;
139 return 0; 139 return 0;
140 } 140 }
OLDNEW
« no previous file with comments | « webrtc/examples/relayserver/relayserver_main.cc ('k') | webrtc/examples/stunserver/stunserver_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698