OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_RTC_BASE_PHYSICALSOCKETSERVER_H_ | 11 #ifndef WEBRTC_RTC_BASE_PHYSICALSOCKETSERVER_H_ |
12 #define WEBRTC_RTC_BASE_PHYSICALSOCKETSERVER_H_ | 12 #define WEBRTC_RTC_BASE_PHYSICALSOCKETSERVER_H_ |
13 | 13 |
14 #if defined(WEBRTC_POSIX) && defined(WEBRTC_LINUX) | 14 #if defined(WEBRTC_POSIX) && defined(WEBRTC_LINUX) |
15 #include <sys/epoll.h> | 15 #include <sys/epoll.h> |
16 #define WEBRTC_USE_EPOLL 1 | 16 #define WEBRTC_USE_EPOLL 1 |
17 #endif | 17 #endif |
18 | 18 |
19 #include <memory> | 19 #include <memory> |
20 #include <set> | 20 #include <set> |
21 #include <vector> | 21 #include <vector> |
22 | 22 |
23 #include "webrtc/rtc_base/criticalsection.h" | 23 #include "webrtc/base/nethelpers.h" |
24 #include "webrtc/rtc_base/nethelpers.h" | 24 #include "webrtc/base/socketserver.h" |
25 #include "webrtc/rtc_base/socketserver.h" | 25 #include "webrtc/base/criticalsection.h" |
26 | 26 |
27 #if defined(WEBRTC_POSIX) | 27 #if defined(WEBRTC_POSIX) |
28 typedef int SOCKET; | 28 typedef int SOCKET; |
29 #endif // WEBRTC_POSIX | 29 #endif // WEBRTC_POSIX |
30 | 30 |
31 namespace rtc { | 31 namespace rtc { |
32 | 32 |
33 // Event constants for the Dispatcher class. | 33 // Event constants for the Dispatcher class. |
34 enum DispatcherEvent { | 34 enum DispatcherEvent { |
35 DE_READ = 0x0001, | 35 DE_READ = 0x0001, |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 #if defined(WEBRTC_USE_EPOLL) | 261 #if defined(WEBRTC_USE_EPOLL) |
262 void MaybeUpdateDispatcher(uint8_t old_events); | 262 void MaybeUpdateDispatcher(uint8_t old_events); |
263 | 263 |
264 int saved_enabled_events_ = -1; | 264 int saved_enabled_events_ = -1; |
265 #endif | 265 #endif |
266 }; | 266 }; |
267 | 267 |
268 } // namespace rtc | 268 } // namespace rtc |
269 | 269 |
270 #endif // WEBRTC_RTC_BASE_PHYSICALSOCKETSERVER_H_ | 270 #endif // WEBRTC_RTC_BASE_PHYSICALSOCKETSERVER_H_ |
OLD | NEW |