aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llcircuit.h
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/llmessage/llcircuit.h
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/llmessage/llcircuit.h')
-rw-r--r--linden/indra/llmessage/llcircuit.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/linden/indra/llmessage/llcircuit.h b/linden/indra/llmessage/llcircuit.h
index 6df7279..e373cb1 100644
--- a/linden/indra/llmessage/llcircuit.h
+++ b/linden/indra/llmessage/llcircuit.h
@@ -18,7 +18,8 @@
18 * There are special exceptions to the terms and conditions of the GPL as 18 * There are special exceptions to the terms and conditions of the GPL as
19 * it is applied to this Source Code. View the full text of the exception 19 * it is applied to this Source Code. View the full text of the exception
20 * in the file doc/FLOSS-exception.txt in this software distribution, or 20 * in the file doc/FLOSS-exception.txt in this software distribution, or
21 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 21 * online at
22 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
22 * 23 *
23 * By copying, modifying or distributing this software, you acknowledge 24 * By copying, modifying or distributing this software, you acknowledge
24 * that you have read and understood your obligations described above, 25 * that you have read and understood your obligations described above,
@@ -50,10 +51,6 @@
50// 51//
51// Constants 52// Constants
52// 53//
53const F32 PING_INTERVAL_MAX = 100.f;
54const F32 PING_INTERVAL_ALARM = 50.f;
55
56
57const F32 LL_AVERAGED_PING_ALPHA = 0.2f; // relaxation constant on ping running average 54const F32 LL_AVERAGED_PING_ALPHA = 0.2f; // relaxation constant on ping running average
58const F32 LL_AVERAGED_PING_MAX = 2000; // msec 55const F32 LL_AVERAGED_PING_MAX = 2000; // msec
59const F32 LL_AVERAGED_PING_MIN = 100; // msec // IW: increased to avoid retransmits when a process is slow 56const F32 LL_AVERAGED_PING_MIN = 100; // msec // IW: increased to avoid retransmits when a process is slow
@@ -85,7 +82,8 @@ class LLSD;
85class LLCircuitData 82class LLCircuitData
86{ 83{
87public: 84public:
88 LLCircuitData(const LLHost &host, TPACKETID in_id); 85 LLCircuitData(const LLHost &host, TPACKETID in_id,
86 const F32 circuit_heartbeat_interval, const F32 circuit_timeout);
89 ~LLCircuitData(); 87 ~LLCircuitData();
90 88
91 S32 resendUnackedPackets(const F64 now); 89 S32 resendUnackedPackets(const F64 now);
@@ -283,6 +281,9 @@ protected:
283 S32 mCurrentResendCount; // Number of resent packets since last spam 281 S32 mCurrentResendCount; // Number of resent packets since last spam
284 LLStatRate mOutOfOrderRate; // Rate of out of order packets coming in. 282 LLStatRate mOutOfOrderRate; // Rate of out of order packets coming in.
285 U32 mLastPacketGap; // Gap in sequence number of last packet. 283 U32 mLastPacketGap; // Gap in sequence number of last packet.
284
285 const F32 mHeartbeatInterval;
286 const F32 mHeartbeatTimeout;
286}; 287};
287 288
288 289
@@ -292,7 +293,7 @@ class LLCircuit
292{ 293{
293public: 294public:
294 // CREATORS 295 // CREATORS
295 LLCircuit(); 296 LLCircuit(const F32 circuit_heartbeat_interval, const F32 circuit_timeout);
296 ~LLCircuit(); 297 ~LLCircuit();
297 298
298 // ACCESSORS 299 // ACCESSORS
@@ -345,5 +346,9 @@ protected:
345 // optimize the many, many times we call findCircuit. This may be 346 // optimize the many, many times we call findCircuit. This may be
346 // set in otherwise const methods, so it is declared mutable. 347 // set in otherwise const methods, so it is declared mutable.
347 mutable LLCircuitData* mLastCircuit; 348 mutable LLCircuitData* mLastCircuit;
349
350private:
351 const F32 mHeartbeatInterval;
352 const F32 mHeartbeatTimeout;
348}; 353};
349#endif 354#endif