#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <map>
#include <memory>
#include "webrtc/base/checks.h"
#include "webrtc/base/flags.h"
#include "webrtc/base/helpers.h"
#include "webrtc/base/nethelpers.h"
#include "webrtc/base/network.h"
#include "webrtc/base/logging.h"
#include "webrtc/base/ssladapter.h"
#include "webrtc/base/stringutils.h"
#include "webrtc/base/thread.h"
#include "webrtc/base/timeutils.h"
#include "webrtc/p2p/base/basicpacketsocketfactory.h"
#include "webrtc/p2p/stunprober/stunprober.h"
|
| DEFINE_bool (help, false, "Prints this message") |
|
| DEFINE_int (interval, 10, "Interval of consecutive stun pings in milliseconds") |
|
| DEFINE_bool (shared_socket, false, "Share socket mode for different remote IPs") |
|
| DEFINE_int (pings_per_ip, 10, "Number of consecutive stun pings to send for each IP") |
|
| DEFINE_int (timeout, 1000, "Milliseconds of wait after the last ping sent before exiting") |
|
| DEFINE_string (servers, "stun.l.google.com:19302,stun1.l.google.com:19302,stun2.l.google.com:19302", "Comma separated STUN server addresses with ports") |
|
int | main (int argc, char **argv) |
|
◆ DEFINE_bool() [1/2]
◆ DEFINE_bool() [2/2]
◆ DEFINE_int() [1/3]
DEFINE_int |
( |
interval |
, |
|
|
10 |
, |
|
|
"Interval of consecutive stun pings in milliseconds" |
|
|
) |
| |
◆ DEFINE_int() [2/3]
DEFINE_int |
( |
pings_per_ip |
, |
|
|
10 |
, |
|
|
"Number of consecutive stun pings to send for each IP" |
|
|
) |
| |
◆ DEFINE_int() [3/3]
DEFINE_int |
( |
timeout |
, |
|
|
1000 |
, |
|
|
"Milliseconds of wait after the last ping sent before exiting" |
|
|
) |
| |
◆ DEFINE_string()
DEFINE_string |
( |
servers |
, |
|
|
"stun.l.google.com:19302 |
, |
|
|
stun1.l.google.com:19302 |
, |
|
|
stun2.l.google.com:19302" |
, |
|
|
"Comma separated STUN server addresses with ports" |
|
|
) |
| |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |