| 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_ASYNCSOCKET_H_ | 11 #ifndef WEBRTC_RTC_BASE_ASYNCSOCKET_H_ |
| 12 #define WEBRTC_RTC_BASE_ASYNCSOCKET_H_ | 12 #define WEBRTC_RTC_BASE_ASYNCSOCKET_H_ |
| 13 | 13 |
| 14 #include "webrtc/base/sigslot.h" | 14 #include "webrtc/rtc_base/sigslot.h" |
| 15 #include "webrtc/base/socket.h" | 15 #include "webrtc/rtc_base/socket.h" |
| 16 | 16 |
| 17 namespace rtc { | 17 namespace rtc { |
| 18 | 18 |
| 19 // TODO: Remove Socket and rename AsyncSocket to Socket. | 19 // TODO: Remove Socket and rename AsyncSocket to Socket. |
| 20 | 20 |
| 21 // Provides the ability to perform socket I/O asynchronously. | 21 // Provides the ability to perform socket I/O asynchronously. |
| 22 class AsyncSocket : public Socket { | 22 class AsyncSocket : public Socket { |
| 23 public: | 23 public: |
| 24 AsyncSocket(); | 24 AsyncSocket(); |
| 25 ~AsyncSocket() override; | 25 ~AsyncSocket() override; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 virtual void OnReadEvent(AsyncSocket* socket); | 74 virtual void OnReadEvent(AsyncSocket* socket); |
| 75 virtual void OnWriteEvent(AsyncSocket* socket); | 75 virtual void OnWriteEvent(AsyncSocket* socket); |
| 76 virtual void OnCloseEvent(AsyncSocket* socket, int err); | 76 virtual void OnCloseEvent(AsyncSocket* socket, int err); |
| 77 | 77 |
| 78 AsyncSocket* socket_; | 78 AsyncSocket* socket_; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace rtc | 81 } // namespace rtc |
| 82 | 82 |
| 83 #endif // WEBRTC_RTC_BASE_ASYNCSOCKET_H_ | 83 #endif // WEBRTC_RTC_BASE_ASYNCSOCKET_H_ |
| OLD | NEW |