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 |
11 #ifndef WEBRTC_RTC_BASE_VIRTUALSOCKETSERVER_H_ | 11 #ifndef WEBRTC_RTC_BASE_VIRTUALSOCKETSERVER_H_ |
12 #define WEBRTC_RTC_BASE_VIRTUALSOCKETSERVER_H_ | 12 #define WEBRTC_RTC_BASE_VIRTUALSOCKETSERVER_H_ |
13 | 13 |
14 #include <deque> | 14 #include <deque> |
15 #include <map> | 15 #include <map> |
16 | 16 |
17 #include "webrtc/base/checks.h" | 17 #include "webrtc/rtc_base/checks.h" |
18 #include "webrtc/base/constructormagic.h" | 18 #include "webrtc/rtc_base/constructormagic.h" |
19 #include "webrtc/base/event.h" | 19 #include "webrtc/rtc_base/event.h" |
20 #include "webrtc/base/fakeclock.h" | 20 #include "webrtc/rtc_base/fakeclock.h" |
21 #include "webrtc/base/messagequeue.h" | 21 #include "webrtc/rtc_base/messagequeue.h" |
22 #include "webrtc/base/socketserver.h" | 22 #include "webrtc/rtc_base/socketserver.h" |
23 | 23 |
24 namespace rtc { | 24 namespace rtc { |
25 | 25 |
26 class Packet; | 26 class Packet; |
27 class VirtualSocket; | 27 class VirtualSocket; |
28 class SocketAddressPair; | 28 class SocketAddressPair; |
29 | 29 |
30 // Simulates a network in the same manner as a loopback interface. The | 30 // Simulates a network in the same manner as a loopback interface. The |
31 // interface can create as many addresses as you want. All of the sockets | 31 // interface can create as many addresses as you want. All of the sockets |
32 // created by this network will be able to communicate with one another, unless | 32 // created by this network will be able to communicate with one another, unless |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 | 391 |
392 // Store the options that are set | 392 // Store the options that are set |
393 OptionsMap options_map_; | 393 OptionsMap options_map_; |
394 | 394 |
395 friend class VirtualSocketServer; | 395 friend class VirtualSocketServer; |
396 }; | 396 }; |
397 | 397 |
398 } // namespace rtc | 398 } // namespace rtc |
399 | 399 |
400 #endif // WEBRTC_RTC_BASE_VIRTUALSOCKETSERVER_H_ | 400 #endif // WEBRTC_RTC_BASE_VIRTUALSOCKETSERVER_H_ |
OLD | NEW |