diff options
Diffstat (limited to 'webrtc/p2p/base/stunrequest.h')
-rw-r--r-- | webrtc/p2p/base/stunrequest.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webrtc/p2p/base/stunrequest.h b/webrtc/p2p/base/stunrequest.h index 267b4a1959..44c1ebff56 100644 --- a/webrtc/p2p/base/stunrequest.h +++ b/webrtc/p2p/base/stunrequest.h @@ -21,6 +21,8 @@ namespace cricket { class StunRequest; +const int kAllRequests = 0; + // Manages a set of STUN requests, sending and resending until we receive a // response or determine that the request has timed out. class StunRequestManager { @@ -32,6 +34,11 @@ class StunRequestManager { void Send(StunRequest* request); void SendDelayed(StunRequest* request, int delay); + // If |msg_type| is kAllRequests, sends all pending requests right away. + // Otherwise, sends those that have a matching type right away. + // Only for testing. + void Flush(int msg_type); + // Removes a stun request that was added previously. This will happen // automatically when a request succeeds, fails, or times out. void Remove(StunRequest* request); |