MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / setDouble

Method setDouble

SIP/SIPUtility.h:158–163  ·  view source on GitHub ↗

Double the timer value but no more than maxTime. Lots of UDP connection timers in SIP use this.

Source from the content-addressed store, hash-verified

156 }
157 // Double the timer value but no more than maxTime. Lots of UDP connection timers in SIP use this.
158 void setDouble(unsigned maxTime=10000) {
159 assert(mLimitTime!=0);
160 unsigned long newTime = mLimitTime * 2;
161 if (newTime > maxTime) { newTime = maxTime; }
162 set(mLimitTime * 2);
163 }
164 void stop() { mActive = false; }
165
166

Callers 3

moPeriodicServiceMethod · 0.80
mtPeriodicServiceMethod · 0.80
TLPeriodicServiceVMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected