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

Side by Side Diff: webrtc/base/virtualsocketserver.h

Issue 1944683002: Read recv timestamps from socket (posix only). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Disable ipv6 test on Linux due to bot issues. 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
OLDNEW
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // Used by TurnPortTest to mimic a case where proxy returns local host address 267 // Used by TurnPortTest to mimic a case where proxy returns local host address
268 // instead of the original one TurnPort was bound against. Please see WebRTC 268 // instead of the original one TurnPort was bound against. Please see WebRTC
269 // issue 3927 for more detail. 269 // issue 3927 for more detail.
270 void SetAlternativeLocalAddress(const SocketAddress& addr); 270 void SetAlternativeLocalAddress(const SocketAddress& addr);
271 271
272 int Bind(const SocketAddress& addr) override; 272 int Bind(const SocketAddress& addr) override;
273 int Connect(const SocketAddress& addr) override; 273 int Connect(const SocketAddress& addr) override;
274 int Close() override; 274 int Close() override;
275 int Send(const void* pv, size_t cb) override; 275 int Send(const void* pv, size_t cb) override;
276 int SendTo(const void* pv, size_t cb, const SocketAddress& addr) override; 276 int SendTo(const void* pv, size_t cb, const SocketAddress& addr) override;
277 int Recv(void* pv, size_t cb) override; 277 int Recv(void* pv, size_t cb, int64_t* timestamp) override;
278 int RecvFrom(void* pv, size_t cb, SocketAddress* paddr) override; 278 int RecvFrom(void* pv,
279 size_t cb,
280 SocketAddress* paddr,
281 int64_t* timestamp) override;
279 int Listen(int backlog) override; 282 int Listen(int backlog) override;
280 VirtualSocket* Accept(SocketAddress* paddr) override; 283 VirtualSocket* Accept(SocketAddress* paddr) override;
281 284
282 int GetError() const override; 285 int GetError() const override;
283 void SetError(int error) override; 286 void SetError(int error) override;
284 ConnState GetState() const override; 287 ConnState GetState() const override;
285 int GetOption(Option opt, int* value) override; 288 int GetOption(Option opt, int* value) override;
286 int SetOption(Option opt, int value) override; 289 int SetOption(Option opt, int value) override;
287 int EstimateMTU(uint16_t* mtu) override; 290 int EstimateMTU(uint16_t* mtu) override;
288 void OnMessage(Message* pmsg) override; 291 void OnMessage(Message* pmsg) override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 355
353 // Store the options that are set 356 // Store the options that are set
354 OptionsMap options_map_; 357 OptionsMap options_map_;
355 358
356 friend class VirtualSocketServer; 359 friend class VirtualSocketServer;
357 }; 360 };
358 361
359 } // namespace rtc 362 } // namespace rtc
360 363
361 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_ 364 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698