Update peerconnection example to not use Win32SocketServer

Bug: webrtc:6424
Change-Id: I78e3846f38312890720816dc613d9985b2a5d2ec
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/223540
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34399}
This commit is contained in:
Niels Möller
2021-06-23 13:57:48 +02:00
committed by WebRTC LUCI CQ
parent 899b29eb25
commit ef83d15273

View File

@ -27,7 +27,6 @@
#include "rtc_base/ssl_adapter.h"
#include "rtc_base/string_utils.h" // For ToUtf8
#include "rtc_base/win32_socket_init.h"
#include "rtc_base/win32_socket_server.h"
#include "system_wrappers/include/field_trial.h"
#include "test/field_trial.h"
@ -76,9 +75,8 @@ int PASCAL wWinMain(HINSTANCE instance,
wchar_t* cmd_line,
int cmd_show) {
rtc::WinsockInitializer winsock_init;
rtc::Win32SocketServer w32_ss;
rtc::Win32Thread w32_thread(&w32_ss);
rtc::ThreadManager::Instance()->SetCurrentThread(&w32_thread);
rtc::PhysicalSocketServer ss;
rtc::AutoSocketServerThread main_thread(&ss);
WindowsCommandLineArguments win_args;
int argc = win_args.argc();