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_P2P_BASE_RELAYSERVER_H_ | 11 #ifndef WEBRTC_P2P_BASE_RELAYSERVER_H_ |
12 #define WEBRTC_P2P_BASE_RELAYSERVER_H_ | 12 #define WEBRTC_P2P_BASE_RELAYSERVER_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/p2p/base/port.h" | 18 #include "webrtc/p2p/base/port.h" |
19 #include "webrtc/p2p/base/stun.h" | 19 #include "webrtc/p2p/base/stun.h" |
20 #include "webrtc/rtc_base/asyncudpsocket.h" | 20 #include "webrtc/base/asyncudpsocket.h" |
21 #include "webrtc/rtc_base/socketaddresspair.h" | 21 #include "webrtc/base/socketaddresspair.h" |
22 #include "webrtc/rtc_base/thread.h" | 22 #include "webrtc/base/thread.h" |
23 #include "webrtc/rtc_base/timeutils.h" | 23 #include "webrtc/base/timeutils.h" |
24 | 24 |
25 namespace cricket { | 25 namespace cricket { |
26 | 26 |
27 class RelayServerBinding; | 27 class RelayServerBinding; |
28 class RelayServerConnection; | 28 class RelayServerConnection; |
29 | 29 |
30 // Relays traffic between connections to the server that are "bound" together. | 30 // Relays traffic between connections to the server that are "bound" together. |
31 // All connections created with the same username/password are bound together. | 31 // All connections created with the same username/password are bound together. |
32 class RelayServer : public rtc::MessageHandler, | 32 class RelayServer : public rtc::MessageHandler, |
33 public sigslot::has_slots<> { | 33 public sigslot::has_slots<> { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 std::vector<RelayServerConnection*> external_connections_; | 227 std::vector<RelayServerConnection*> external_connections_; |
228 | 228 |
229 int lifetime_; | 229 int lifetime_; |
230 int64_t last_used_; | 230 int64_t last_used_; |
231 // TODO: bandwidth | 231 // TODO: bandwidth |
232 }; | 232 }; |
233 | 233 |
234 } // namespace cricket | 234 } // namespace cricket |
235 | 235 |
236 #endif // WEBRTC_P2P_BASE_RELAYSERVER_H_ | 236 #endif // WEBRTC_P2P_BASE_RELAYSERVER_H_ |
OLD | NEW |