blob: 780abf8a1be2297131980e195fd8c5e86e096a4b [file] [log] [blame]
danilchapbebf54c2016-04-28 01:32:48 -07001/*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#include "rtc_base/nullsocketserver.h"
12#include "rtc_base/checks.h"
danilchapbebf54c2016-04-28 01:32:48 -070013
14namespace rtc {
15
16NullSocketServer::NullSocketServer() : event_(false, false) {}
17NullSocketServer::~NullSocketServer() {}
18
19bool NullSocketServer::Wait(int cms, bool process_io) {
20 event_.Wait(cms);
21 return true;
22}
23
24void NullSocketServer::WakeUp() {
25 event_.Set();
26}
27
danilchapbebf54c2016-04-28 01:32:48 -070028
29rtc::Socket* NullSocketServer::CreateSocket(int /* family */, int /* type */) {
30 RTC_NOTREACHED();
31 return nullptr;
32}
33
danilchapbebf54c2016-04-28 01:32:48 -070034rtc::AsyncSocket* NullSocketServer::CreateAsyncSocket(int /* family */,
35 int /* type */) {
36 RTC_NOTREACHED();
37 return nullptr;
38}
39
40} // namespace rtc