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

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

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, 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 26 matching lines...) Expand all
37 int Attach(SOCKET s); 37 int Attach(SOCKET s);
38 void SetTimeout(int ms); 38 void SetTimeout(int ms);
39 39
40 // AsyncSocket Interface 40 // AsyncSocket Interface
41 virtual SocketAddress GetLocalAddress() const; 41 virtual SocketAddress GetLocalAddress() const;
42 virtual SocketAddress GetRemoteAddress() const; 42 virtual SocketAddress GetRemoteAddress() const;
43 virtual int Bind(const SocketAddress& addr); 43 virtual int Bind(const SocketAddress& addr);
44 virtual int Connect(const SocketAddress& addr); 44 virtual int Connect(const SocketAddress& addr);
45 virtual int Send(const void *buffer, size_t length); 45 virtual int Send(const void *buffer, size_t length);
46 virtual int SendTo(const void *buffer, size_t length, const SocketAddress& add r); 46 virtual int SendTo(const void *buffer, size_t length, const SocketAddress& add r);
47 virtual int Recv(void *buffer, size_t length); 47 virtual int Recv(void* buffer, size_t length, int64_t* timestamp);
48 virtual int RecvFrom(void *buffer, size_t length, SocketAddress *out_addr); 48 virtual int RecvFrom(void* buffer,
49 size_t length,
50 SocketAddress* out_addr,
51 int64_t* timestamp);
49 virtual int Listen(int backlog); 52 virtual int Listen(int backlog);
50 virtual Win32Socket *Accept(SocketAddress *out_addr); 53 virtual Win32Socket *Accept(SocketAddress *out_addr);
51 virtual int Close(); 54 virtual int Close();
52 virtual int GetError() const; 55 virtual int GetError() const;
53 virtual void SetError(int error); 56 virtual void SetError(int error);
54 virtual ConnState GetState() const; 57 virtual ConnState GetState() const;
55 virtual int EstimateMTU(uint16_t* mtu); 58 virtual int EstimateMTU(uint16_t* mtu);
56 virtual int GetOption(Option opt, int* value); 59 virtual int GetOption(Option opt, int* value);
57 virtual int SetOption(Option opt, int value); 60 virtual int SetOption(Option opt, int value);
58 61
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 155 }
153 private: 156 private:
154 Win32SocketServer ss_; 157 Win32SocketServer ss_;
155 DWORD id_; 158 DWORD id_;
156 }; 159 };
157 160
158 /////////////////////////////////////////////////////////////////////////////// 161 ///////////////////////////////////////////////////////////////////////////////
159 162
160 } // namespace rtc 163 } // namespace rtc
161 164
162 #endif // WEBRTC_WIN 165 #endif // WEBRTC_WIN
163 166
164 #endif // WEBRTC_BASE_WIN32SOCKETSERVER_H_ 167 #endif // WEBRTC_BASE_WIN32SOCKETSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698