diff options
author | UbitUmarov | 2014-08-16 13:43:26 +0100 |
---|---|---|
committer | UbitUmarov | 2014-08-16 13:43:26 +0100 |
commit | 1edaf29149c767a2742b44d69308edb2e2d64428 (patch) | |
tree | a899fa00d3a75b5a011fb643eb79754ab8ad4334 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |
parent | *test* just send default appearance ( something along path doesnt like (diff) | |
download | opensim-SC-1edaf29149c767a2742b44d69308edb2e2d64428.zip opensim-SC-1edaf29149c767a2742b44d69308edb2e2d64428.tar.gz opensim-SC-1edaf29149c767a2742b44d69308edb2e2d64428.tar.bz2 opensim-SC-1edaf29149c767a2742b44d69308edb2e2d64428.tar.xz |
NextAnimationSequenceNumber be a udpserver variable with random start
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index bd192dc..3b0312d 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -293,6 +293,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
293 | /// <summary>Flag to signal when clients should send pings</summary> | 293 | /// <summary>Flag to signal when clients should send pings</summary> |
294 | protected bool m_sendPing; | 294 | protected bool m_sendPing; |
295 | 295 | ||
296 | private int m_animationSequenceNumber; | ||
297 | |||
298 | public int NextAnimationSequenceNumber | ||
299 | { | ||
300 | get | ||
301 | { | ||
302 | m_animationSequenceNumber++; | ||
303 | if (m_animationSequenceNumber > 2147482624) | ||
304 | m_animationSequenceNumber = 1; | ||
305 | return m_animationSequenceNumber; | ||
306 | } | ||
307 | } | ||
308 | |||
309 | |||
296 | 310 | ||
297 | private ExpiringCache<IPEndPoint, Queue<UDPPacketBuffer>> m_pendingCache = new ExpiringCache<IPEndPoint, Queue<UDPPacketBuffer>>(); | 311 | private ExpiringCache<IPEndPoint, Queue<UDPPacketBuffer>> m_pendingCache = new ExpiringCache<IPEndPoint, Queue<UDPPacketBuffer>>(); |
298 | 312 | ||
@@ -438,6 +452,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
438 | m_throttle = new TokenBucket(null, sceneThrottleBps); | 452 | m_throttle = new TokenBucket(null, sceneThrottleBps); |
439 | ThrottleRates = new ThrottleRates(configSource); | 453 | ThrottleRates = new ThrottleRates(configSource); |
440 | 454 | ||
455 | Random rnd = new Random(Util.EnvironmentTickCount()); | ||
456 | m_animationSequenceNumber = rnd.Next(11474826); | ||
457 | |||
441 | if (usePools) | 458 | if (usePools) |
442 | EnablePools(); | 459 | EnablePools(); |
443 | } | 460 | } |