blob: 68b67fa4c8efe5681999d2b6374fe41095f6c0f1 [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
28rtc::Socket* NullSocketServer::CreateSocket(int /* type */) {
29 RTC_NOTREACHED();
30 return nullptr;
31}
32
33rtc::Socket* NullSocketServer::CreateSocket(int /* family */, int /* type */) {
34 RTC_NOTREACHED();
35 return nullptr;
36}
37
38rtc::AsyncSocket* NullSocketServer::CreateAsyncSocket(int /* type */) {
39 RTC_NOTREACHED();
40 return nullptr;
41}
42
43rtc::AsyncSocket* NullSocketServer::CreateAsyncSocket(int /* family */,
44 int /* type */) {
45 RTC_NOTREACHED();
46 return nullptr;
47}
48
49} // namespace rtc