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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 rtc::AsyncPacketSocket* GetIncoming( | 90 rtc::AsyncPacketSocket* GetIncoming( |
91 const rtc::SocketAddress& addr, bool remove = false); | 91 const rtc::SocketAddress& addr, bool remove = false); |
92 | 92 |
93 // Receives packet signal from the local TCP Socket. | 93 // Receives packet signal from the local TCP Socket. |
94 void OnReadPacket(rtc::AsyncPacketSocket* socket, | 94 void OnReadPacket(rtc::AsyncPacketSocket* socket, |
95 const char* data, size_t size, | 95 const char* data, size_t size, |
96 const rtc::SocketAddress& remote_addr, | 96 const rtc::SocketAddress& remote_addr, |
97 const rtc::PacketTime& packet_time); | 97 const rtc::PacketTime& packet_time); |
98 | 98 |
99 void OnSentPacket(rtc::AsyncPacketSocket* socket, | |
100 const rtc::SentPacket& sent_packet) override; | |
101 | |
102 void OnReadyToSend(rtc::AsyncPacketSocket* socket); | 99 void OnReadyToSend(rtc::AsyncPacketSocket* socket); |
103 | 100 |
104 void OnAddressReady(rtc::AsyncPacketSocket* socket, | 101 void OnAddressReady(rtc::AsyncPacketSocket* socket, |
105 const rtc::SocketAddress& address); | 102 const rtc::SocketAddress& address); |
106 | 103 |
107 // TODO: Is this still needed? | 104 // TODO: Is this still needed? |
108 bool incoming_only_; | 105 bool incoming_only_; |
109 bool allow_listen_; | 106 bool allow_listen_; |
110 rtc::AsyncPacketSocket* socket_; | 107 rtc::AsyncPacketSocket* socket_; |
111 int error_; | 108 int error_; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 176 |
180 // Allow test case to overwrite the default timeout period. | 177 // Allow test case to overwrite the default timeout period. |
181 int reconnection_timeout_; | 178 int reconnection_timeout_; |
182 | 179 |
183 friend class TCPPort; | 180 friend class TCPPort; |
184 }; | 181 }; |
185 | 182 |
186 } // namespace cricket | 183 } // namespace cricket |
187 | 184 |
188 #endif // WEBRTC_P2P_BASE_TCPPORT_H_ | 185 #endif // WEBRTC_P2P_BASE_TCPPORT_H_ |
OLD | NEW |