Index: webrtc/p2p/base/port.h |
diff --git a/webrtc/p2p/base/port.h b/webrtc/p2p/base/port.h |
index a36c9f13bdf8af5a8da9a6869242fb3ad4820331..0b8cef0799a4f9f84e4442195a301cd7262a9ccb 100644 |
--- a/webrtc/p2p/base/port.h |
+++ b/webrtc/p2p/base/port.h |
@@ -540,6 +540,7 @@ class Connection : public rtc::MessageHandler, |
// transmission. This connection will send STUN ping with USE-CANDIDATE |
// attribute. |
sigslot::signal1<Connection*> SignalUseCandidate; |
+ |
// Invoked when Connection receives STUN error response with 487 code. |
void HandleRoleConflictFromPeer(); |
@@ -557,6 +558,10 @@ class Connection : public rtc::MessageHandler, |
// |new_candidate|. |
void MaybeUpdatePeerReflexiveCandidate(const Candidate& new_candidate); |
+ // Returns true if there is any incoming (data/stun request/stun response) |
+ // packet in the last |receiving_timeout| milliseconds. |
+ bool CheckReceiving(uint32 receiving_timeout); |
+ |
protected: |
enum { MSG_DELETE = 0, MSG_FIRST_AVAILABLE }; |