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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 uint32 network_capacity_; | 236 uint32 network_capacity_; |
237 uint32 send_buffer_capacity_; | 237 uint32 send_buffer_capacity_; |
238 uint32 recv_buffer_capacity_; | 238 uint32 recv_buffer_capacity_; |
239 uint32 delay_mean_; | 239 uint32 delay_mean_; |
240 uint32 delay_stddev_; | 240 uint32 delay_stddev_; |
241 uint32 delay_samples_; | 241 uint32 delay_samples_; |
242 Function* delay_dist_; | 242 Function* delay_dist_; |
243 CriticalSection delay_crit_; | 243 CriticalSection delay_crit_; |
244 | 244 |
245 double drop_prob_; | 245 double drop_prob_; |
246 DISALLOW_COPY_AND_ASSIGN(VirtualSocketServer); | 246 RTC_DISALLOW_COPY_AND_ASSIGN(VirtualSocketServer); |
247 }; | 247 }; |
248 | 248 |
249 // Implements the socket interface using the virtual network. Packets are | 249 // Implements the socket interface using the virtual network. Packets are |
250 // passed as messages using the message queue of the socket server. | 250 // passed as messages using the message queue of the socket server. |
251 class VirtualSocket : public AsyncSocket, public MessageHandler { | 251 class VirtualSocket : public AsyncSocket, public MessageHandler { |
252 public: | 252 public: |
253 VirtualSocket(VirtualSocketServer* server, int family, int type, bool async); | 253 VirtualSocket(VirtualSocketServer* server, int family, int type, bool async); |
254 ~VirtualSocket() override; | 254 ~VirtualSocket() override; |
255 | 255 |
256 SocketAddress GetLocalAddress() const override; | 256 SocketAddress GetLocalAddress() const override; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 | 345 |
346 // Store the options that are set | 346 // Store the options that are set |
347 OptionsMap options_map_; | 347 OptionsMap options_map_; |
348 | 348 |
349 friend class VirtualSocketServer; | 349 friend class VirtualSocketServer; |
350 }; | 350 }; |
351 | 351 |
352 } // namespace rtc | 352 } // namespace rtc |
353 | 353 |
354 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_ | 354 #endif // WEBRTC_BASE_VIRTUALSOCKETSERVER_H_ |
OLD | NEW |