Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: webrtc/base/asyncsocket.cc

Issue 1944683002: Read recv timestamps from socket (posix only). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/base/asyncsocket.h ('k') | webrtc/base/asynctcpsocket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/base/asyncsocket.h ('k') | webrtc/base/asynctcpsocket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698