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 |
(...skipping 23 matching lines...) Expand all Loading... |
34 }; | 34 }; |
35 | 35 |
36 class Signaler; | 36 class Signaler; |
37 #if defined(WEBRTC_POSIX) | 37 #if defined(WEBRTC_POSIX) |
38 class PosixSignalDispatcher; | 38 class PosixSignalDispatcher; |
39 #endif | 39 #endif |
40 | 40 |
41 class Dispatcher { | 41 class Dispatcher { |
42 public: | 42 public: |
43 virtual ~Dispatcher() {} | 43 virtual ~Dispatcher() {} |
44 virtual uint32 GetRequestedEvents() = 0; | 44 virtual uint32_t GetRequestedEvents() = 0; |
45 virtual void OnPreEvent(uint32 ff) = 0; | 45 virtual void OnPreEvent(uint32_t ff) = 0; |
46 virtual void OnEvent(uint32 ff, int err) = 0; | 46 virtual void OnEvent(uint32_t ff, int err) = 0; |
47 #if defined(WEBRTC_WIN) | 47 #if defined(WEBRTC_WIN) |
48 virtual WSAEVENT GetWSAEvent() = 0; | 48 virtual WSAEVENT GetWSAEvent() = 0; |
49 virtual SOCKET GetSocket() = 0; | 49 virtual SOCKET GetSocket() = 0; |
50 virtual bool CheckSignalClose() = 0; | 50 virtual bool CheckSignalClose() = 0; |
51 #elif defined(WEBRTC_POSIX) | 51 #elif defined(WEBRTC_POSIX) |
52 virtual int GetDescriptor() = 0; | 52 virtual int GetDescriptor() = 0; |
53 virtual bool IsDescriptorClosed() = 0; | 53 virtual bool IsDescriptorClosed() = 0; |
54 #endif | 54 #endif |
55 }; | 55 }; |
56 | 56 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 CriticalSection crit_; | 111 CriticalSection crit_; |
112 bool fWait_; | 112 bool fWait_; |
113 #if defined(WEBRTC_WIN) | 113 #if defined(WEBRTC_WIN) |
114 WSAEVENT socket_ev_; | 114 WSAEVENT socket_ev_; |
115 #endif | 115 #endif |
116 }; | 116 }; |
117 | 117 |
118 } // namespace rtc | 118 } // namespace rtc |
119 | 119 |
120 #endif // WEBRTC_BASE_PHYSICALSOCKETSERVER_H__ | 120 #endif // WEBRTC_BASE_PHYSICALSOCKETSERVER_H__ |
OLD | NEW |