mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00

In order to support WinUWP platform, all main(..) routines must be normalized to the formal int main(int argc, char* argv[]) form. A platform wrapper main is auto-created linking against the default main(...). This can only work if the linkage is exactly matching the proper formal definition and not a loosely defined main(...) alternative. Bug: webrtc:8608 Change-Id: I606663aaea7df1792c7c5636279617b8926fa5cc Reviewed-on: https://webrtc-review.googlesource.com/28721 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21229}
20 lines
701 B
C++
20 lines
701 B
C++
/*
|
|
* 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.
|
|
*/
|
|
|
|
#include "rtc_tools/network_tester/test_controller.h"
|
|
|
|
int main(int /*argn*/, char* /*argv*/ []) {
|
|
webrtc::TestController server(9090, 9090, "server_config.dat",
|
|
"server_packet_log.dat");
|
|
while (!server.IsTestDone()) {
|
|
server.Run();
|
|
}
|
|
return 0;
|
|
}
|