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

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

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/firewallsocketserver.cc ('k') | webrtc/base/macasyncsocket.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 2008 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2008 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 // MacAsyncSocket is a kind of AsyncSocket. It only creates sockets 10 // MacAsyncSocket is a kind of AsyncSocket. It only creates sockets
(...skipping 24 matching lines...) Expand all
35 35
36 // Socket interface 36 // Socket interface
37 SocketAddress GetLocalAddress() const override; 37 SocketAddress GetLocalAddress() const override;
38 SocketAddress GetRemoteAddress() const override; 38 SocketAddress GetRemoteAddress() const override;
39 int Bind(const SocketAddress& addr) override; 39 int Bind(const SocketAddress& addr) override;
40 int Connect(const SocketAddress& addr) override; 40 int Connect(const SocketAddress& addr) override;
41 int Send(const void* buffer, size_t length) override; 41 int Send(const void* buffer, size_t length) override;
42 int SendTo(const void* buffer, 42 int SendTo(const void* buffer,
43 size_t length, 43 size_t length,
44 const SocketAddress& addr) override; 44 const SocketAddress& addr) override;
45 int Recv(void* buffer, size_t length) override; 45 int Recv(void* buffer, size_t length, int64_t* timestamp) override;
46 int RecvFrom(void* buffer, size_t length, SocketAddress* out_addr) override; 46 int RecvFrom(void* buffer,
47 size_t length,
48 SocketAddress* out_addr,
49 int64_t* timestamp) override;
47 int Listen(int backlog) override; 50 int Listen(int backlog) override;
48 MacAsyncSocket* Accept(SocketAddress* out_addr) override; 51 MacAsyncSocket* Accept(SocketAddress* out_addr) override;
49 int Close() override; 52 int Close() override;
50 int GetError() const override; 53 int GetError() const override;
51 void SetError(int error) override; 54 void SetError(int error) override;
52 ConnState GetState() const override; 55 ConnState GetState() const override;
53 int EstimateMTU(uint16_t* mtu) override; 56 int EstimateMTU(uint16_t* mtu) override;
54 int GetOption(Option opt, int* value) override; 57 int GetOption(Option opt, int* value) override;
55 int SetOption(Option opt, int value) override; 58 int SetOption(Option opt, int value) override;
56 59
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 int error_; 93 int error_;
91 ConnState state_; 94 ConnState state_;
92 AsyncResolver* resolver_; 95 AsyncResolver* resolver_;
93 96
94 RTC_DISALLOW_COPY_AND_ASSIGN(MacAsyncSocket); 97 RTC_DISALLOW_COPY_AND_ASSIGN(MacAsyncSocket);
95 }; 98 };
96 99
97 } // namespace rtc 100 } // namespace rtc
98 101
99 #endif // WEBRTC_BASE_MACASYNCSOCKET_H__ 102 #endif // WEBRTC_BASE_MACASYNCSOCKET_H__
OLDNEW
« no previous file with comments | « webrtc/base/firewallsocketserver.cc ('k') | webrtc/base/macasyncsocket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698