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

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

Issue 1535943004: Multi-networking with Android L. Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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/physicalsocketserver.cc ('k') | webrtc/base/virtualsocketserver.h » ('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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 #define SOCKET_ERROR (-1) 117 #define SOCKET_ERROR (-1)
118 #define closesocket(s) close(s) 118 #define closesocket(s) close(s)
119 #endif // WEBRTC_POSIX 119 #endif // WEBRTC_POSIX
120 120
121 namespace rtc { 121 namespace rtc {
122 122
123 inline bool IsBlockingError(int e) { 123 inline bool IsBlockingError(int e) {
124 return (e == EWOULDBLOCK) || (e == EAGAIN) || (e == EINPROGRESS); 124 return (e == EWOULDBLOCK) || (e == EAGAIN) || (e == EINPROGRESS);
125 } 125 }
126 126
127 typedef uint32_t NetworkHandle;
128
127 struct SentPacket { 129 struct SentPacket {
128 SentPacket() : packet_id(-1), send_time_ms(-1) {} 130 SentPacket() : packet_id(-1), send_time_ms(-1) {}
129 SentPacket(int packet_id, int64_t send_time_ms) 131 SentPacket(int packet_id, int64_t send_time_ms)
130 : packet_id(packet_id), send_time_ms(send_time_ms) {} 132 : packet_id(packet_id), send_time_ms(send_time_ms) {}
131 133
132 int packet_id; 134 int packet_id;
133 int64_t send_time_ms; 135 int64_t send_time_ms;
134 }; 136 };
135 137
136 // General interface for the socket implementations of various networks. The 138 // General interface for the socket implementations of various networks. The
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 protected: 191 protected:
190 Socket() {} 192 Socket() {}
191 193
192 private: 194 private:
193 RTC_DISALLOW_COPY_AND_ASSIGN(Socket); 195 RTC_DISALLOW_COPY_AND_ASSIGN(Socket);
194 }; 196 };
195 197
196 } // namespace rtc 198 } // namespace rtc
197 199
198 #endif // WEBRTC_BASE_SOCKET_H__ 200 #endif // WEBRTC_BASE_SOCKET_H__
OLDNEW
« no previous file with comments | « webrtc/base/physicalsocketserver.cc ('k') | webrtc/base/virtualsocketserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698