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

Side by Side Diff: webrtc/base/openssladapter.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/natsocketfactory.cc ('k') | webrtc/base/openssladapter.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 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 19 matching lines...) Expand all
30 static bool InitializeSSLThread(); 30 static bool InitializeSSLThread();
31 static bool CleanupSSL(); 31 static bool CleanupSSL();
32 32
33 OpenSSLAdapter(AsyncSocket* socket); 33 OpenSSLAdapter(AsyncSocket* socket);
34 ~OpenSSLAdapter() override; 34 ~OpenSSLAdapter() override;
35 35
36 void SetMode(SSLMode mode) override; 36 void SetMode(SSLMode mode) override;
37 int StartSSL(const char* hostname, bool restartable) override; 37 int StartSSL(const char* hostname, bool restartable) override;
38 int Send(const void* pv, size_t cb) override; 38 int Send(const void* pv, size_t cb) override;
39 int SendTo(const void* pv, size_t cb, const SocketAddress& addr) override; 39 int SendTo(const void* pv, size_t cb, const SocketAddress& addr) override;
40 int Recv(void* pv, size_t cb) override; 40 int Recv(void* pv, size_t cb, int64_t* timestamp) override;
41 int RecvFrom(void* pv, size_t cb, SocketAddress* paddr) override; 41 int RecvFrom(void* pv,
42 size_t cb,
43 SocketAddress* paddr,
44 int64_t* timestamp) override;
42 int Close() override; 45 int Close() override;
43 46
44 // Note that the socket returns ST_CONNECTING while SSL is being negotiated. 47 // Note that the socket returns ST_CONNECTING while SSL is being negotiated.
45 ConnState GetState() const override; 48 ConnState GetState() const override;
46 49
47 protected: 50 protected:
48 void OnConnectEvent(AsyncSocket* socket) override; 51 void OnConnectEvent(AsyncSocket* socket) override;
49 void OnReadEvent(AsyncSocket* socket) override; 52 void OnReadEvent(AsyncSocket* socket) override;
50 void OnWriteEvent(AsyncSocket* socket) override; 53 void OnWriteEvent(AsyncSocket* socket) override;
51 void OnCloseEvent(AsyncSocket* socket, int err) override; 54 void OnCloseEvent(AsyncSocket* socket, int err) override;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 SSLMode ssl_mode_; 93 SSLMode ssl_mode_;
91 94
92 bool custom_verification_succeeded_; 95 bool custom_verification_succeeded_;
93 }; 96 };
94 97
95 ///////////////////////////////////////////////////////////////////////////// 98 /////////////////////////////////////////////////////////////////////////////
96 99
97 } // namespace rtc 100 } // namespace rtc
98 101
99 #endif // WEBRTC_BASE_OPENSSLADAPTER_H__ 102 #endif // WEBRTC_BASE_OPENSSLADAPTER_H__
OLDNEW
« no previous file with comments | « webrtc/base/natsocketfactory.cc ('k') | webrtc/base/openssladapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698