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

Unified Diff: webrtc/examples/peerconnection/client/peer_connection_client.cc

Issue 1944683002: Read recv timestamps from socket (posix only). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix win build. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/examples/peerconnection/client/peer_connection_client.cc
diff --git a/webrtc/examples/peerconnection/client/peer_connection_client.cc b/webrtc/examples/peerconnection/client/peer_connection_client.cc
index 9875115c4ba408d74b7357d983758d7074b46997..6f11a102c365cccfed81f938a364df5c6a6cd3c9 100644
--- a/webrtc/examples/peerconnection/client/peer_connection_client.cc
+++ b/webrtc/examples/peerconnection/client/peer_connection_client.cc
@@ -296,7 +296,8 @@ bool PeerConnectionClient::ReadIntoBuffer(rtc::AsyncSocket* socket,
size_t* content_length) {
char buffer[0xffff];
do {
- int bytes = socket->Recv(buffer, sizeof(buffer));
+ int64_t timestamp;
+ int bytes = socket->Recv(buffer, sizeof(buffer), &timestamp);
if (bytes <= 0)
break;
data->append(buffer, bytes);

Powered by Google App Engine
This is Rietveld 408576698