aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
diff options
context:
space:
mode:
authorMelanie2011-10-25 01:35:30 +0100
committerMelanie2011-10-25 01:35:30 +0100
commit080a41e9f9e750530b09bde227eacdfef89e3ed4 (patch)
tree093911d8440d4b012b4bdba0dbd220bfc96f902d /OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
parentFix ground sit autopilot (diff)
parentImprove some method doc for LLUDPClient, LLUDPServer and UnackedPacketCollection (diff)
downloadopensim-SC-080a41e9f9e750530b09bde227eacdfef89e3ed4.zip
opensim-SC-080a41e9f9e750530b09bde227eacdfef89e3ed4.tar.gz
opensim-SC-080a41e9f9e750530b09bde227eacdfef89e3ed4.tar.bz2
opensim-SC-080a41e9f9e750530b09bde227eacdfef89e3ed4.tar.xz
Merge commit 'f9ffd2538f3bf300e8f751258a6129fb780b5b0a' into bigmerge
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs22
1 files changed, 15 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
index 758fd93..3802482 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
@@ -170,7 +170,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
170 /// <param name="circuitCode">Circuit code for this connection</param> 170 /// <param name="circuitCode">Circuit code for this connection</param>
171 /// <param name="agentID">AgentID for the connected agent</param> 171 /// <param name="agentID">AgentID for the connected agent</param>
172 /// <param name="remoteEndPoint">Remote endpoint for this connection</param> 172 /// <param name="remoteEndPoint">Remote endpoint for this connection</param>
173 public LLUDPClient(LLUDPServer server, ThrottleRates rates, TokenBucket parentThrottle, uint circuitCode, UUID agentID, IPEndPoint remoteEndPoint, int defaultRTO, int maxRTO) 173 /// <param name="defaultRTO">
174 /// Default retransmission timeout for unacked packets. The RTO will never drop
175 /// beyond this number.
176 /// </param>
177 /// <param name="maxRTO">
178 /// The maximum retransmission timeout for unacked packets. The RTO will never exceed this number.
179 /// </param>
180 public LLUDPClient(
181 LLUDPServer server, ThrottleRates rates, TokenBucket parentThrottle, uint circuitCode, UUID agentID,
182 IPEndPoint remoteEndPoint, int defaultRTO, int maxRTO)
174 { 183 {
175 AgentID = agentID; 184 AgentID = agentID;
176 RemoteEndPoint = remoteEndPoint; 185 RemoteEndPoint = remoteEndPoint;
@@ -198,7 +207,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
198 m_throttleCategories[i] = new TokenBucket(m_throttleCategory, rates.GetRate(type)); 207 m_throttleCategories[i] = new TokenBucket(m_throttleCategory, rates.GetRate(type));
199 } 208 }
200 209
201 // Default the retransmission timeout to three seconds 210 // Default the retransmission timeout to one second
202 RTO = m_defaultRTO; 211 RTO = m_defaultRTO;
203 212
204 // Initialize this to a sane value to prevent early disconnects 213 // Initialize this to a sane value to prevent early disconnects
@@ -263,9 +272,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
263 /// <summary> 272 /// <summary>
264 /// Return statistics information about client packet queues. 273 /// Return statistics information about client packet queues.
265 /// </summary> 274 /// </summary>
266 /// 275 /// <remarks>
267 /// FIXME: This should really be done in a more sensible manner rather than sending back a formatted string. 276 /// FIXME: This should really be done in a more sensible manner rather than sending back a formatted string.
268 /// 277 /// </remarks>
269 /// <returns></returns> 278 /// <returns></returns>
270 public string GetStats() 279 public string GetStats()
271 { 280 {
@@ -616,8 +625,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
616 /// Does an early check to see if this queue empty callback is already 625 /// Does an early check to see if this queue empty callback is already
617 /// running, then asynchronously firing the event 626 /// running, then asynchronously firing the event
618 /// </summary> 627 /// </summary>
619 /// <param name="throttleIndex">Throttle category to fire the callback 628 /// <param name="categories">Throttle categories to fire the callback for</param>
620 /// for</param>
621 private void BeginFireQueueEmpty(ThrottleOutPacketTypeFlags categories) 629 private void BeginFireQueueEmpty(ThrottleOutPacketTypeFlags categories)
622 { 630 {
623 if (m_nextOnQueueEmpty != 0 && (Environment.TickCount & Int32.MaxValue) >= m_nextOnQueueEmpty) 631 if (m_nextOnQueueEmpty != 0 && (Environment.TickCount & Int32.MaxValue) >= m_nextOnQueueEmpty)
@@ -704,4 +712,4 @@ namespace OpenSim.Region.ClientStack.LindenUDP
704 } 712 }
705 } 713 }
706 } 714 }
707} 715} \ No newline at end of file