2017-04-20 05:39:30 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright 2017 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2022-07-03 17:20:17 +09:00
|
|
|
#include "rtc_base/null_socket_server.h"
|
2023-11-13 11:52:16 +00:00
|
|
|
#include "rtc_base/thread.h"
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "rtc_tools/network_tester/test_controller.h"
|
2017-04-20 05:39:30 -07:00
|
|
|
|
2017-12-03 16:45:56 -05:00
|
|
|
int main(int /*argn*/, char* /*argv*/[]) {
|
2022-07-03 17:20:17 +09:00
|
|
|
rtc::Thread main_thread(std::make_unique<rtc::NullSocketServer>());
|
2017-04-20 05:39:30 -07:00
|
|
|
webrtc::TestController server(9090, 9090, "server_config.dat",
|
|
|
|
|
"server_packet_log.dat");
|
|
|
|
|
while (!server.IsTestDone()) {
|
2022-07-03 17:20:17 +09:00
|
|
|
// 100 ms is arbitrary chosen.
|
|
|
|
|
main_thread.ProcessMessages(/*cms=*/100);
|
2017-04-20 05:39:30 -07:00
|
|
|
}
|
2017-12-03 16:45:56 -05:00
|
|
|
return 0;
|
2017-04-20 05:39:30 -07:00
|
|
|
}
|