Update peerconnection example to not use Win32Socket
Followup to https://webrtc-review.googlesource.com/c/src/+/223540 Bug: webrtc:6424. webrtc:13065 Change-Id: I85ccfa9e6997a24464d240b0e9b3f1ac90112e8c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/224541 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/main@{#35423}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
deb1b1bc70
commit
b2860b0033
@ -15,10 +15,6 @@
|
||||
#include "rtc_base/logging.h"
|
||||
#include "rtc_base/net_helpers.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include "rtc_base/win32_socket_server.h"
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
// This is our magical hangup signal.
|
||||
@ -27,17 +23,9 @@ const char kByeMessage[] = "BYE";
|
||||
const int kReconnectDelay = 2000;
|
||||
|
||||
rtc::Socket* CreateClientSocket(int family) {
|
||||
#ifdef WIN32
|
||||
rtc::Win32Socket* sock = new rtc::Win32Socket();
|
||||
sock->CreateT(family, SOCK_STREAM);
|
||||
return sock;
|
||||
#elif defined(WEBRTC_POSIX)
|
||||
rtc::Thread* thread = rtc::Thread::Current();
|
||||
RTC_DCHECK(thread != NULL);
|
||||
return thread->socketserver()->CreateSocket(family, SOCK_STREAM);
|
||||
#else
|
||||
#error Platform not supported.
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user