| 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 virtual void SendBindingResponse(StunMessage* request, | 99 virtual void SendBindingResponse(StunMessage* request, |
| 100 const rtc::SocketAddress& addr) = 0; | 100 const rtc::SocketAddress& addr) = 0; |
| 101 virtual void SendBindingErrorResponse( | 101 virtual void SendBindingErrorResponse( |
| 102 StunMessage* request, const rtc::SocketAddress& addr, | 102 StunMessage* request, const rtc::SocketAddress& addr, |
| 103 int error_code, const std::string& reason) = 0; | 103 int error_code, const std::string& reason) = 0; |
| 104 | 104 |
| 105 // Signaled when this port decides to delete itself because it no longer has | 105 // Signaled when this port decides to delete itself because it no longer has |
| 106 // any usefulness. | 106 // any usefulness. |
| 107 sigslot::signal1<PortInterface*> SignalDestroyed; | 107 sigslot::signal1<PortInterface*> SignalDestroyed; |
| 108 | 108 |
| 109 // Signaled when the network used by this port becomes inactive. | |
| 110 sigslot::signal1<PortInterface*> SignalNetworkInactive; | |
| 111 | |
| 112 // Signaled when Port discovers ice role conflict with the peer. | 109 // Signaled when Port discovers ice role conflict with the peer. |
| 113 sigslot::signal1<PortInterface*> SignalRoleConflict; | 110 sigslot::signal1<PortInterface*> SignalRoleConflict; |
| 114 | 111 |
| 115 // Normally, packets arrive through a connection (or they result signaling of | 112 // Normally, packets arrive through a connection (or they result signaling of |
| 116 // unknown address). Calling this method turns off delivery of packets | 113 // unknown address). Calling this method turns off delivery of packets |
| 117 // through their respective connection and instead delivers every packet | 114 // through their respective connection and instead delivers every packet |
| 118 // through this port. | 115 // through this port. |
| 119 virtual void EnablePortPackets() = 0; | 116 virtual void EnablePortPackets() = 0; |
| 120 sigslot::signal4<PortInterface*, const char*, size_t, | 117 sigslot::signal4<PortInterface*, const char*, size_t, |
| 121 const rtc::SocketAddress&> SignalReadPacket; | 118 const rtc::SocketAddress&> SignalReadPacket; |
| 122 | 119 |
| 123 // Emitted each time a packet is sent on this port. | 120 // Emitted each time a packet is sent on this port. |
| 124 sigslot::signal1<const rtc::SentPacket&> SignalSentPacket; | 121 sigslot::signal1<const rtc::SentPacket&> SignalSentPacket; |
| 125 | 122 |
| 126 virtual std::string ToString() const = 0; | 123 virtual std::string ToString() const = 0; |
| 127 | 124 |
| 128 protected: | 125 protected: |
| 129 PortInterface() {} | 126 PortInterface() {} |
| 130 }; | 127 }; |
| 131 | 128 |
| 132 } // namespace cricket | 129 } // namespace cricket |
| 133 | 130 |
| 134 #endif // WEBRTC_P2P_BASE_PORTINTERFACE_H_ | 131 #endif // WEBRTC_P2P_BASE_PORTINTERFACE_H_ |
| OLD | NEW |