| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 size_t size); | 108 size_t size); |
| 109 void HandleStunAllocate(RelayServerConnection* int_conn, | 109 void HandleStunAllocate(RelayServerConnection* int_conn, |
| 110 const StunMessage& msg); | 110 const StunMessage& msg); |
| 111 void HandleStunSend(RelayServerConnection* int_conn, const StunMessage& msg); | 111 void HandleStunSend(RelayServerConnection* int_conn, const StunMessage& msg); |
| 112 | 112 |
| 113 // Adds/Removes the a connection or binding. | 113 // Adds/Removes the a connection or binding. |
| 114 void AddConnection(RelayServerConnection* conn); | 114 void AddConnection(RelayServerConnection* conn); |
| 115 void RemoveConnection(RelayServerConnection* conn); | 115 void RemoveConnection(RelayServerConnection* conn); |
| 116 void RemoveBinding(RelayServerBinding* binding); | 116 void RemoveBinding(RelayServerBinding* binding); |
| 117 | 117 |
| 118 // Handle messages in our worker thread. | 118 // Handle messages in our thread. |
| 119 void OnMessage(rtc::Message *pmsg); | 119 void OnMessage(rtc::Message *pmsg); |
| 120 | 120 |
| 121 // Called when the timer for checking lifetime times out. | 121 // Called when the timer for checking lifetime times out. |
| 122 void OnTimeout(RelayServerBinding* binding); | 122 void OnTimeout(RelayServerBinding* binding); |
| 123 | 123 |
| 124 // Accept connections on this server socket. | 124 // Accept connections on this server socket. |
| 125 void AcceptConnection(rtc::AsyncSocket* server_socket); | 125 void AcceptConnection(rtc::AsyncSocket* server_socket); |
| 126 | 126 |
| 127 friend class RelayServerConnection; | 127 friend class RelayServerConnection; |
| 128 friend class RelayServerBinding; | 128 friend class RelayServerBinding; |
| (...skipping 98 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 |