OLD | NEW |
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 void UpdateLastError(); | 166 void UpdateLastError(); |
167 void MaybeRemapSendError(); | 167 void MaybeRemapSendError(); |
168 | 168 |
169 static int TranslateOption(Option opt, int* slevel, int* sopt); | 169 static int TranslateOption(Option opt, int* slevel, int* sopt); |
170 | 170 |
171 PhysicalSocketServer* ss_; | 171 PhysicalSocketServer* ss_; |
172 SOCKET s_; | 172 SOCKET s_; |
173 uint8_t enabled_events_; | 173 uint8_t enabled_events_; |
174 bool udp_; | 174 bool udp_; |
175 mutable CriticalSection crit_; | 175 CriticalSection crit_; |
176 int error_ GUARDED_BY(crit_); | 176 int error_ GUARDED_BY(crit_); |
177 ConnState state_; | 177 ConnState state_; |
178 AsyncResolver* resolver_; | 178 AsyncResolver* resolver_; |
179 | 179 |
180 #if !defined(NDEBUG) | 180 #if !defined(NDEBUG) |
181 std::string dbg_addr_; | 181 std::string dbg_addr_; |
182 #endif | 182 #endif |
183 }; | 183 }; |
184 | 184 |
185 class SocketDispatcher : public Dispatcher, public PhysicalSocket { | 185 class SocketDispatcher : public Dispatcher, public PhysicalSocket { |
(...skipping 27 matching lines...) Expand all Loading... |
213 static int next_id_; | 213 static int next_id_; |
214 int id_; | 214 int id_; |
215 bool signal_close_; | 215 bool signal_close_; |
216 int signal_err_; | 216 int signal_err_; |
217 #endif // WEBRTC_WIN | 217 #endif // WEBRTC_WIN |
218 }; | 218 }; |
219 | 219 |
220 } // namespace rtc | 220 } // namespace rtc |
221 | 221 |
222 #endif // WEBRTC_BASE_PHYSICALSOCKETSERVER_H__ | 222 #endif // WEBRTC_BASE_PHYSICALSOCKETSERVER_H__ |
OLD | NEW |