| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 const rtc::SocketAddress& remote_addr, | 99 const rtc::SocketAddress& remote_addr, |
| 100 const rtc::PacketTime& packet_time) { | 100 const rtc::PacketTime& packet_time) { |
| 101 OnReadPacket(socket, data, size, remote_addr, packet_time); | 101 OnReadPacket(socket, data, size, remote_addr, packet_time); |
| 102 return true; | 102 return true; |
| 103 } | 103 } |
| 104 virtual void OnReadPacket(rtc::AsyncPacketSocket* socket, | 104 virtual void OnReadPacket(rtc::AsyncPacketSocket* socket, |
| 105 const char* data, size_t size, | 105 const char* data, size_t size, |
| 106 const rtc::SocketAddress& remote_addr, | 106 const rtc::SocketAddress& remote_addr, |
| 107 const rtc::PacketTime& packet_time); | 107 const rtc::PacketTime& packet_time); |
| 108 | 108 |
| 109 virtual void OnSentPacket(rtc::AsyncPacketSocket* socket, |
| 110 const rtc::SentPacket& sent_packet); |
| 109 virtual void OnReadyToSend(rtc::AsyncPacketSocket* socket); | 111 virtual void OnReadyToSend(rtc::AsyncPacketSocket* socket); |
| 110 virtual bool SupportsProtocol(const std::string& protocol) const { | 112 virtual bool SupportsProtocol(const std::string& protocol) const { |
| 111 // Turn port only connects to UDP candidates. | 113 // Turn port only connects to UDP candidates. |
| 112 return protocol == UDP_PROTOCOL_NAME; | 114 return protocol == UDP_PROTOCOL_NAME; |
| 113 } | 115 } |
| 114 | 116 |
| 115 void OnSocketConnect(rtc::AsyncPacketSocket* socket); | 117 void OnSocketConnect(rtc::AsyncPacketSocket* socket); |
| 116 void OnSocketClose(rtc::AsyncPacketSocket* socket, int error); | 118 void OnSocketClose(rtc::AsyncPacketSocket* socket, int error); |
| 117 | 119 |
| 118 | 120 |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 friend class TurnEntry; | 280 friend class TurnEntry; |
| 279 friend class TurnAllocateRequest; | 281 friend class TurnAllocateRequest; |
| 280 friend class TurnRefreshRequest; | 282 friend class TurnRefreshRequest; |
| 281 friend class TurnCreatePermissionRequest; | 283 friend class TurnCreatePermissionRequest; |
| 282 friend class TurnChannelBindRequest; | 284 friend class TurnChannelBindRequest; |
| 283 }; | 285 }; |
| 284 | 286 |
| 285 } // namespace cricket | 287 } // namespace cricket |
| 286 | 288 |
| 287 #endif // WEBRTC_P2P_BASE_TURNPORT_H_ | 289 #endif // WEBRTC_P2P_BASE_TURNPORT_H_ |
| OLD | NEW |