| 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 |
| 11 | #ifndef RTC_BASE_NULL_SOCKET_SERVER_H_ |
| 12 | #define RTC_BASE_NULL_SOCKET_SERVER_H_ |
| 13 |
| 14 | #include "rtc_base/async_socket.h" |
| 15 | #include "rtc_base/event.h" |
| 16 | #include "rtc_base/socket.h" |
| 17 | #include "rtc_base/socket_server.h" |
| 18 | #include "rtc_base/system/rtc_export.h" |
| 19 |
| 20 | namespace rtc { |
| 21 |
| 22 | class RTC_EXPORT NullSocketServer : public SocketServer { |
| 23 | public: |
| 24 | NullSocketServer(); |
| 25 | ~NullSocketServer() override; |
| 26 |
| 27 | bool Wait(int cms, bool process_io) override; |
| 28 | void WakeUp() override; |
| 29 |
| 30 | Socket* CreateSocket(int family, int type) override; |
| 31 | AsyncSocket* CreateAsyncSocket(int family, int type) override; |
| 32 |
| 33 | private: |
| 34 | Event event_; |
| 35 | }; |
| 36 |
| 37 | } // namespace rtc |
| 38 |
| 39 | #endif // RTC_BASE_NULL_SOCKET_SERVER_H_ |
| 40 |