| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2012 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 void ResetNonce(); | 236 void ResetNonce(); |
| 237 | 237 |
| 238 bool HasPermission(const rtc::IPAddress& ipaddr) const; | 238 bool HasPermission(const rtc::IPAddress& ipaddr) const; |
| 239 TurnEntry* FindEntry(const rtc::SocketAddress& address) const; | 239 TurnEntry* FindEntry(const rtc::SocketAddress& address) const; |
| 240 TurnEntry* FindEntry(int channel_id) const; | 240 TurnEntry* FindEntry(int channel_id) const; |
| 241 bool EntryExists(TurnEntry* e); | 241 bool EntryExists(TurnEntry* e); |
| 242 void CreateOrRefreshEntry(const rtc::SocketAddress& address); | 242 void CreateOrRefreshEntry(const rtc::SocketAddress& address); |
| 243 void DestroyEntry(TurnEntry* entry); | 243 void DestroyEntry(TurnEntry* entry); |
| 244 // Destroys the entry only if |timestamp| matches the destruction timestamp | 244 // Destroys the entry only if |timestamp| matches the destruction timestamp |
| 245 // in |entry|. | 245 // in |entry|. |
| 246 void DestroyEntryIfNotCancelled(TurnEntry* entry, uint32_t timestamp); | 246 void DestroyEntryIfNotCancelled(TurnEntry* entry, int64_t timestamp); |
| 247 void ScheduleEntryDestruction(TurnEntry* entry); | 247 void ScheduleEntryDestruction(TurnEntry* entry); |
| 248 void CancelEntryDestruction(TurnEntry* entry); | 248 void CancelEntryDestruction(TurnEntry* entry); |
| 249 void OnConnectionDestroyed(Connection* conn); | 249 void OnConnectionDestroyed(Connection* conn); |
| 250 | 250 |
| 251 // Destroys the connection with remote address |address|. Returns true if | 251 // Destroys the connection with remote address |address|. Returns true if |
| 252 // a connection is found and destroyed. | 252 // a connection is found and destroyed. |
| 253 bool DestroyConnection(const rtc::SocketAddress& address); | 253 bool DestroyConnection(const rtc::SocketAddress& address); |
| 254 | 254 |
| 255 ProtocolAddress server_address_; | 255 ProtocolAddress server_address_; |
| 256 RelayCredentials credentials_; | 256 RelayCredentials credentials_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 282 friend class TurnEntry; | 282 friend class TurnEntry; |
| 283 friend class TurnAllocateRequest; | 283 friend class TurnAllocateRequest; |
| 284 friend class TurnRefreshRequest; | 284 friend class TurnRefreshRequest; |
| 285 friend class TurnCreatePermissionRequest; | 285 friend class TurnCreatePermissionRequest; |
| 286 friend class TurnChannelBindRequest; | 286 friend class TurnChannelBindRequest; |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 } // namespace cricket | 289 } // namespace cricket |
| 290 | 290 |
| 291 #endif // WEBRTC_P2P_BASE_TURNPORT_H_ | 291 #endif // WEBRTC_P2P_BASE_TURNPORT_H_ |
| OLD | NEW |