| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2010 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 int AsyncSocketAdapter::Send(const void* pv, size_t cb) { | 57 int AsyncSocketAdapter::Send(const void* pv, size_t cb) { |
| 58 return socket_->Send(pv, cb); | 58 return socket_->Send(pv, cb); |
| 59 } | 59 } |
| 60 | 60 |
| 61 int AsyncSocketAdapter::SendTo(const void* pv, | 61 int AsyncSocketAdapter::SendTo(const void* pv, |
| 62 size_t cb, | 62 size_t cb, |
| 63 const SocketAddress& addr) { | 63 const SocketAddress& addr) { |
| 64 return socket_->SendTo(pv, cb, addr); | 64 return socket_->SendTo(pv, cb, addr); |
| 65 } | 65 } |
| 66 | 66 |
| 67 int AsyncSocketAdapter::Recv(void* pv, size_t cb) { | 67 int AsyncSocketAdapter::Recv(void* pv, size_t cb, int64_t* timestamp) { |
| 68 return socket_->Recv(pv, cb); | 68 return socket_->Recv(pv, cb, timestamp); |
| 69 } | 69 } |
| 70 | 70 |
| 71 int AsyncSocketAdapter::RecvFrom(void* pv, size_t cb, SocketAddress* paddr) { | 71 int AsyncSocketAdapter::RecvFrom(void* pv, |
| 72 return socket_->RecvFrom(pv, cb, paddr); | 72 size_t cb, |
| 73 SocketAddress* paddr, |
| 74 int64_t* timestamp) { |
| 75 return socket_->RecvFrom(pv, cb, paddr, timestamp); |
| 73 } | 76 } |
| 74 | 77 |
| 75 int AsyncSocketAdapter::Listen(int backlog) { | 78 int AsyncSocketAdapter::Listen(int backlog) { |
| 76 return socket_->Listen(backlog); | 79 return socket_->Listen(backlog); |
| 77 } | 80 } |
| 78 | 81 |
| 79 AsyncSocket* AsyncSocketAdapter::Accept(SocketAddress* paddr) { | 82 AsyncSocket* AsyncSocketAdapter::Accept(SocketAddress* paddr) { |
| 80 return socket_->Accept(paddr); | 83 return socket_->Accept(paddr); |
| 81 } | 84 } |
| 82 | 85 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 121 |
| 119 void AsyncSocketAdapter::OnWriteEvent(AsyncSocket* socket) { | 122 void AsyncSocketAdapter::OnWriteEvent(AsyncSocket* socket) { |
| 120 SignalWriteEvent(this); | 123 SignalWriteEvent(this); |
| 121 } | 124 } |
| 122 | 125 |
| 123 void AsyncSocketAdapter::OnCloseEvent(AsyncSocket* socket, int err) { | 126 void AsyncSocketAdapter::OnCloseEvent(AsyncSocket* socket, int err) { |
| 124 SignalCloseEvent(this, err); | 127 SignalCloseEvent(this, err); |
| 125 } | 128 } |
| 126 | 129 |
| 127 } // namespace rtc | 130 } // namespace rtc |
| OLD | NEW |