| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 size_t cb, | 42 size_t cb, |
| 43 const SocketAddress& addr, | 43 const SocketAddress& addr, |
| 44 const rtc::PacketOptions& options) override; | 44 const rtc::PacketOptions& options) override; |
| 45 int Close() override; | 45 int Close() override; |
| 46 | 46 |
| 47 State GetState() const override; | 47 State GetState() const override; |
| 48 int GetOption(Socket::Option opt, int* value) override; | 48 int GetOption(Socket::Option opt, int* value) override; |
| 49 int SetOption(Socket::Option opt, int value) override; | 49 int SetOption(Socket::Option opt, int value) override; |
| 50 int GetError() const override; | 50 int GetError() const override; |
| 51 void SetError(int error) override; | 51 void SetError(int error) override; |
| 52 void BindToNetwork(const Network* network) override; |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 // Called when the underlying socket is ready to be read from. | 55 // Called when the underlying socket is ready to be read from. |
| 55 void OnReadEvent(AsyncSocket* socket); | 56 void OnReadEvent(AsyncSocket* socket); |
| 56 // Called when the underlying socket is ready to send. | 57 // Called when the underlying socket is ready to send. |
| 57 void OnWriteEvent(AsyncSocket* socket); | 58 void OnWriteEvent(AsyncSocket* socket); |
| 58 | 59 |
| 59 scoped_ptr<AsyncSocket> socket_; | 60 scoped_ptr<AsyncSocket> socket_; |
| 60 char* buf_; | 61 char* buf_; |
| 61 size_t size_; | 62 size_t size_; |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace rtc | 65 } // namespace rtc |
| 65 | 66 |
| 66 #endif // WEBRTC_BASE_ASYNCUDPSOCKET_H_ | 67 #endif // WEBRTC_BASE_ASYNCUDPSOCKET_H_ |
| OLD | NEW |