diff options
author | lbsa71 | 2009-02-12 09:53:12 +0000 |
---|---|---|
committer | lbsa71 | 2009-02-12 09:53:12 +0000 |
commit | 801da4346aeb3c08969c4845f5c595135a64470a (patch) | |
tree | 2f06e24c72e0d513c8e4c6aa9b75cd2c7b50f393 /OpenSim/Region/ClientStack | |
parent | Thanks Kitto Flora for a patch that adds automatic min fly height to ODE - Ma... (diff) | |
download | opensim-SC-801da4346aeb3c08969c4845f5c595135a64470a.zip opensim-SC-801da4346aeb3c08969c4845f5c595135a64470a.tar.gz opensim-SC-801da4346aeb3c08969c4845f5c595135a64470a.tar.bz2 opensim-SC-801da4346aeb3c08969c4845f5c595135a64470a.tar.xz |
* optimized usings.
Diffstat (limited to 'OpenSim/Region/ClientStack')
17 files changed, 38 insertions, 89 deletions
diff --git a/OpenSim/Region/ClientStack/ClientStackManager.cs b/OpenSim/Region/ClientStack/ClientStackManager.cs index f947d06..a7b65cb 100644 --- a/OpenSim/Region/ClientStack/ClientStackManager.cs +++ b/OpenSim/Region/ClientStack/ClientStackManager.cs | |||
@@ -31,9 +31,6 @@ using System.Reflection; | |||
31 | using log4net; | 31 | using log4net; |
32 | using Nini.Config; | 32 | using Nini.Config; |
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Region.ClientStack; | ||
35 | using OpenSim.Framework.Communications; | ||
36 | using OpenSim.Framework.Communications.Cache; | ||
37 | 34 | ||
38 | namespace OpenSim.Region.ClientStack | 35 | namespace OpenSim.Region.ClientStack |
39 | { | 36 | { |
diff --git a/OpenSim/Region/ClientStack/IClientNetworkServer.cs b/OpenSim/Region/ClientStack/IClientNetworkServer.cs index 8bd5434..b0749c6 100644 --- a/OpenSim/Region/ClientStack/IClientNetworkServer.cs +++ b/OpenSim/Region/ClientStack/IClientNetworkServer.cs | |||
@@ -30,7 +30,6 @@ using System.Net.Sockets; | |||
30 | using Nini.Config; | 30 | using Nini.Config; |
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Region.Framework.Scenes; | 32 | using OpenSim.Region.Framework.Scenes; |
33 | using OpenSim.Framework.Communications.Cache; | ||
34 | 33 | ||
35 | namespace OpenSim.Region.ClientStack | 34 | namespace OpenSim.Region.ClientStack |
36 | { | 35 | { |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs b/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs index 8197ec7..df6534f 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs | |||
@@ -25,9 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Text; | ||
31 | using OpenMetaverse.Packets; | 28 | using OpenMetaverse.Packets; |
32 | 29 | ||
33 | namespace OpenSim.Region.ClientStack.LindenUDP | 30 | namespace OpenSim.Region.ClientStack.LindenUDP |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index a785e64..3b8b48f 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -33,17 +33,16 @@ using System.Text; | |||
33 | using System.Threading; | 33 | using System.Threading; |
34 | using System.Timers; | 34 | using System.Timers; |
35 | using System.Xml; | 35 | using System.Xml; |
36 | using log4net; | ||
36 | using OpenMetaverse; | 37 | using OpenMetaverse; |
37 | using OpenMetaverse.Packets; | 38 | using OpenMetaverse.Packets; |
38 | using OpenMetaverse.StructuredData; | ||
39 | using log4net; | ||
40 | using OpenSim.Framework; | 39 | using OpenSim.Framework; |
41 | using OpenSim.Framework.Client; | 40 | using OpenSim.Framework.Client; |
42 | using OpenSim.Framework.Communications.Cache; | 41 | using OpenSim.Framework.Communications.Cache; |
43 | using OpenSim.Framework.Statistics; | 42 | using OpenSim.Framework.Statistics; |
44 | using OpenSim.Region.Framework.Interfaces; | 43 | using OpenSim.Region.Framework.Interfaces; |
45 | using OpenSim.Region.Framework.Scenes; | 44 | using OpenSim.Region.Framework.Scenes; |
46 | using Timer = System.Timers.Timer; | 45 | using Timer=System.Timers.Timer; |
47 | 46 | ||
48 | namespace OpenSim.Region.ClientStack.LindenUDP | 47 | namespace OpenSim.Region.ClientStack.LindenUDP |
49 | { | 48 | { |
@@ -474,7 +473,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
474 | m_PacketHandler.OnPacketStats += PopulateStats; | 473 | m_PacketHandler.OnPacketStats += PopulateStats; |
475 | 474 | ||
476 | RegisterLocalPacketHandlers(); | 475 | RegisterLocalPacketHandlers(); |
477 | m_imageManager = new LLImageManager(this, m_assetCache,Scene.RequestModuleInterface<OpenSim.Region.Framework.Interfaces.IJ2KDecoder>()); | 476 | m_imageManager = new LLImageManager(this, m_assetCache,Scene.RequestModuleInterface<IJ2KDecoder>()); |
478 | } | 477 | } |
479 | 478 | ||
480 | public void SetDebugPacketLevel(int newDebugPacketLevel) | 479 | public void SetDebugPacketLevel(int newDebugPacketLevel) |
@@ -1230,7 +1229,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1230 | fromAgent, toAgent, false, false, false); | 1229 | fromAgent, toAgent, false, false, false); |
1231 | } | 1230 | } |
1232 | 1231 | ||
1233 | System.Console.WriteLine("SendInstantMessage: " + msg); | 1232 | Console.WriteLine("SendInstantMessage: " + msg); |
1234 | } | 1233 | } |
1235 | else | 1234 | else |
1236 | OutPacket(msg, ThrottleOutPacketType.Task); | 1235 | OutPacket(msg, ThrottleOutPacketType.Task); |
@@ -6857,15 +6856,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6857 | groupTitlesRequest.AgentData.GroupID); | 6856 | groupTitlesRequest.AgentData.GroupID); |
6858 | 6857 | ||
6859 | groupTitlesReply.GroupData = | 6858 | groupTitlesReply.GroupData = |
6860 | new GroupTitlesReplyPacket. | 6859 | new GroupTitlesReplyPacket.GroupDataBlock[titles.Count]; |
6861 | GroupDataBlock[titles.Count]; | ||
6862 | 6860 | ||
6863 | int i = 0; | 6861 | int i = 0; |
6864 | foreach (GroupTitlesData d in titles) | 6862 | foreach (GroupTitlesData d in titles) |
6865 | { | 6863 | { |
6866 | groupTitlesReply.GroupData[i] = | 6864 | groupTitlesReply.GroupData[i] = |
6867 | new GroupTitlesReplyPacket. | 6865 | new GroupTitlesReplyPacket.GroupDataBlock(); |
6868 | GroupDataBlock(); | ||
6869 | 6866 | ||
6870 | groupTitlesReply.GroupData[i].Title = | 6867 | groupTitlesReply.GroupData[i].Title = |
6871 | Utils.StringToBytes(d.Name); | 6868 | Utils.StringToBytes(d.Name); |
@@ -6980,8 +6977,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6980 | groupRolesReply.AgentData.AgentID = AgentId; | 6977 | groupRolesReply.AgentData.AgentID = AgentId; |
6981 | 6978 | ||
6982 | groupRolesReply.GroupData = | 6979 | groupRolesReply.GroupData = |
6983 | new GroupRoleDataReplyPacket. | 6980 | new GroupRoleDataReplyPacket.GroupDataBlock(); |
6984 | GroupDataBlock(); | ||
6985 | 6981 | ||
6986 | groupRolesReply.GroupData.GroupID = | 6982 | groupRolesReply.GroupData.GroupID = |
6987 | groupRolesRequest.GroupData.GroupID; | 6983 | groupRolesRequest.GroupData.GroupID; |
@@ -6997,15 +6993,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6997 | titles.Count; | 6993 | titles.Count; |
6998 | 6994 | ||
6999 | groupRolesReply.RoleData = | 6995 | groupRolesReply.RoleData = |
7000 | new GroupRoleDataReplyPacket. | 6996 | new GroupRoleDataReplyPacket.RoleDataBlock[titles.Count]; |
7001 | RoleDataBlock[titles.Count]; | ||
7002 | 6997 | ||
7003 | int i = 0; | 6998 | int i = 0; |
7004 | foreach (GroupRolesData d in titles) | 6999 | foreach (GroupRolesData d in titles) |
7005 | { | 7000 | { |
7006 | groupRolesReply.RoleData[i] = | 7001 | groupRolesReply.RoleData[i] = |
7007 | new GroupRoleDataReplyPacket. | 7002 | new GroupRoleDataReplyPacket.RoleDataBlock(); |
7008 | RoleDataBlock(); | ||
7009 | 7003 | ||
7010 | groupRolesReply.RoleData[i].RoleID = | 7004 | groupRolesReply.RoleData[i].RoleID = |
7011 | d.RoleID; | 7005 | d.RoleID; |
@@ -7051,15 +7045,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
7051 | (uint)mappings.Count; | 7045 | (uint)mappings.Count; |
7052 | 7046 | ||
7053 | groupRoleMembersReply.MemberData = | 7047 | groupRoleMembersReply.MemberData = |
7054 | new GroupRoleMembersReplyPacket. | 7048 | new GroupRoleMembersReplyPacket.MemberDataBlock[mappings.Count]; |
7055 | MemberDataBlock[mappings.Count]; | ||
7056 | 7049 | ||
7057 | int i = 0; | 7050 | int i = 0; |
7058 | foreach (GroupRoleMembersData d in mappings) | 7051 | foreach (GroupRoleMembersData d in mappings) |
7059 | { | 7052 | { |
7060 | groupRoleMembersReply.MemberData[i] = | 7053 | groupRoleMembersReply.MemberData[i] = |
7061 | new GroupRoleMembersReplyPacket. | 7054 | new GroupRoleMembersReplyPacket.MemberDataBlock(); |
7062 | MemberDataBlock(); | ||
7063 | 7055 | ||
7064 | groupRoleMembersReply.MemberData[i].RoleID = | 7056 | groupRoleMembersReply.MemberData[i].RoleID = |
7065 | d.RoleID; | 7057 | d.RoleID; |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLFileTransfer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLFileTransfer.cs index b801f7a..f79f62e 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLFileTransfer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLFileTransfer.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -27,16 +27,8 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Text; | ||
31 | using System.Xml; | ||
32 | using OpenMetaverse; | 30 | using OpenMetaverse; |
33 | using OpenMetaverse.Packets; | ||
34 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Client; | ||
36 | using OpenSim.Framework.Communications.Cache; | ||
37 | using OpenSim.Framework.Statistics; | ||
38 | using OpenSim.Region.Framework.Interfaces; | ||
39 | using OpenSim.Region.Framework.Scenes; | ||
40 | 32 | ||
41 | namespace OpenSim.Region.ClientStack.LindenUDP | 33 | namespace OpenSim.Region.ClientStack.LindenUDP |
42 | { | 34 | { |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLImageManager.cs b/OpenSim/Region/ClientStack/LindenUDP/LLImageManager.cs index 43a2e23..6f9e5d3 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLImageManager.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLImageManager.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -27,13 +27,11 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using C5; | ||
30 | using OpenMetaverse; | 31 | using OpenMetaverse; |
32 | using OpenMetaverse.Imaging; | ||
31 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
32 | using OpenSim.Region.Framework.Interfaces; | 34 | using OpenSim.Region.Framework.Interfaces; |
33 | using C5; | ||
34 | using OpenSim.Framework.Communications.Cache; | ||
35 | using OpenMetaverse.Imaging; | ||
36 | |||
37 | 35 | ||
38 | namespace OpenSim.Region.ClientStack.LindenUDP | 36 | namespace OpenSim.Region.ClientStack.LindenUDP |
39 | { | 37 | { |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs index 97d75e1..23118a2 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs | |||
@@ -26,19 +26,14 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | ||
30 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
31 | using System.Net; | ||
32 | using System.Net.Sockets; | 30 | using System.Net.Sockets; |
33 | using System.Threading; | 31 | using System.Threading; |
34 | using System.Timers; | 32 | using System.Timers; |
35 | using System.Reflection; | ||
36 | using OpenMetaverse; | 33 | using OpenMetaverse; |
37 | using OpenMetaverse.Packets; | 34 | using OpenMetaverse.Packets; |
38 | using Timer = System.Timers.Timer; | ||
39 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
40 | using OpenSim.Region.ClientStack.LindenUDP; | 36 | using Timer=System.Timers.Timer; |
41 | using log4net; | ||
42 | 37 | ||
43 | namespace OpenSim.Region.ClientStack.LindenUDP | 38 | namespace OpenSim.Region.ClientStack.LindenUDP |
44 | { | 39 | { |
@@ -96,7 +91,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
96 | private Dictionary<uint, int> m_DupeTracker = | 91 | private Dictionary<uint, int> m_DupeTracker = |
97 | new Dictionary<uint, int>(); | 92 | new Dictionary<uint, int>(); |
98 | private uint m_DupeTrackerWindow = 30; | 93 | private uint m_DupeTrackerWindow = 30; |
99 | private int m_DupeTrackerLastCheck = System.Environment.TickCount; | 94 | private int m_DupeTrackerLastCheck = Environment.TickCount; |
100 | 95 | ||
101 | // Values for the SimStatsReporter | 96 | // Values for the SimStatsReporter |
102 | // | 97 | // |
@@ -164,7 +159,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
164 | { | 159 | { |
165 | m_Client = client; | 160 | m_Client = client; |
166 | m_PacketServer = server; | 161 | m_PacketServer = server; |
167 | m_DropSafeTimeout = System.Environment.TickCount + 15000; | 162 | m_DropSafeTimeout = Environment.TickCount + 15000; |
168 | 163 | ||
169 | m_PacketQueue = new LLPacketQueue(client.AgentId, userSettings); | 164 | m_PacketQueue = new LLPacketQueue(client.AgentId, userSettings); |
170 | 165 | ||
@@ -225,9 +220,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
225 | // acks being appended to the payload, just don't send | 220 | // acks being appended to the payload, just don't send |
226 | // any with them until libsl is fixed. | 221 | // any with them until libsl is fixed. |
227 | // | 222 | // |
228 | if (packet is OpenMetaverse.Packets.ViewerEffectPacket) | 223 | if (packet is ViewerEffectPacket) |
229 | return; | 224 | return; |
230 | if (packet is OpenMetaverse.Packets.SimStatsPacket) | 225 | if (packet is SimStatsPacket) |
231 | return; | 226 | return; |
232 | 227 | ||
233 | // Add acks to outgoing packets | 228 | // Add acks to outgoing packets |
@@ -261,7 +256,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
261 | item.Packet = packet; | 256 | item.Packet = packet; |
262 | item.Incoming = false; | 257 | item.Incoming = false; |
263 | item.throttleType = throttlePacketType; | 258 | item.throttleType = throttlePacketType; |
264 | item.TickCount = System.Environment.TickCount; | 259 | item.TickCount = Environment.TickCount; |
265 | item.Identifier = id; | 260 | item.Identifier = id; |
266 | item.Resends = 0; | 261 | item.Resends = 0; |
267 | item.Length = packet.ToBytes().Length; | 262 | item.Length = packet.ToBytes().Length; |
@@ -272,7 +267,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
272 | 267 | ||
273 | private void ResendUnacked() | 268 | private void ResendUnacked() |
274 | { | 269 | { |
275 | int now = System.Environment.TickCount; | 270 | int now = Environment.TickCount; |
276 | 271 | ||
277 | int intervalMs = 250; | 272 | int intervalMs = 250; |
278 | 273 | ||
@@ -341,7 +336,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
341 | } | 336 | } |
342 | 337 | ||
343 | m_NeedAck[packet.Header.Sequence].TickCount = | 338 | m_NeedAck[packet.Header.Sequence].TickCount = |
344 | System.Environment.TickCount; | 339 | Environment.TickCount; |
345 | 340 | ||
346 | QueuePacket(packet, ThrottleOutPacketType.Resend, | 341 | QueuePacket(packet, ThrottleOutPacketType.Resend, |
347 | data.Identifier); | 342 | data.Identifier); |
@@ -463,10 +458,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
463 | if (m_DupeTracker.Count < 1024) | 458 | if (m_DupeTracker.Count < 1024) |
464 | return; | 459 | return; |
465 | 460 | ||
466 | if (System.Environment.TickCount - m_DupeTrackerLastCheck < 2000) | 461 | if (Environment.TickCount - m_DupeTrackerLastCheck < 2000) |
467 | return; | 462 | return; |
468 | 463 | ||
469 | m_DupeTrackerLastCheck = System.Environment.TickCount; | 464 | m_DupeTrackerLastCheck = Environment.TickCount; |
470 | 465 | ||
471 | Dictionary<uint, int> packs = | 466 | Dictionary<uint, int> packs = |
472 | new Dictionary<uint, int>(m_DupeTracker); | 467 | new Dictionary<uint, int>(m_DupeTracker); |
@@ -673,7 +668,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
673 | item.Packet = packet; | 668 | item.Packet = packet; |
674 | item.Incoming = false; | 669 | item.Incoming = false; |
675 | item.throttleType = 0; | 670 | item.throttleType = 0; |
676 | item.TickCount = System.Environment.TickCount; | 671 | item.TickCount = Environment.TickCount; |
677 | item.Identifier = 0; | 672 | item.Identifier = 0; |
678 | item.Resends = 0; | 673 | item.Resends = 0; |
679 | item.Length = packet.ToBytes().Length; | 674 | item.Length = packet.ToBytes().Length; |
@@ -741,7 +736,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
741 | m_UnackedBytes += item.Length; | 736 | m_UnackedBytes += item.Length; |
742 | 737 | ||
743 | // Keep track of when this packet was sent out | 738 | // Keep track of when this packet was sent out |
744 | item.TickCount = System.Environment.TickCount; | 739 | item.TickCount = Environment.TickCount; |
745 | 740 | ||
746 | m_NeedAck[packet.Header.Sequence] = item; | 741 | m_NeedAck[packet.Header.Sequence] = item; |
747 | } | 742 | } |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs index 17c3f97..1c398d9 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs | |||
@@ -27,23 +27,22 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | ||
30 | using System.Threading; | 31 | using System.Threading; |
31 | using System.Timers; | 32 | using System.Timers; |
33 | using log4net; | ||
32 | using OpenMetaverse; | 34 | using OpenMetaverse; |
33 | using OpenMetaverse.Packets; | ||
34 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Statistics; | 36 | using OpenSim.Framework.Statistics; |
36 | using OpenSim.Framework.Statistics.Interfaces; | 37 | using OpenSim.Framework.Statistics.Interfaces; |
37 | using OpenSim.Region.ClientStack; | ||
38 | using Timer=System.Timers.Timer; | 38 | using Timer=System.Timers.Timer; |
39 | 39 | ||
40 | |||
41 | namespace OpenSim.Region.ClientStack.LindenUDP | 40 | namespace OpenSim.Region.ClientStack.LindenUDP |
42 | { | 41 | { |
43 | public class LLPacketQueue : IPullStatsProvider | 42 | public class LLPacketQueue : IPullStatsProvider |
44 | { | 43 | { |
45 | private static readonly log4net.ILog m_log | 44 | private static readonly ILog m_log |
46 | = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 45 | = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
47 | 46 | ||
48 | /// <summary> | 47 | /// <summary> |
49 | /// Is queueing enabled at all? | 48 | /// Is queueing enabled at all? |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs index a42ae04..7305f34 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs | |||
@@ -27,12 +27,9 @@ | |||
27 | 27 | ||
28 | using System.Net; | 28 | using System.Net; |
29 | using System.Net.Sockets; | 29 | using System.Net.Sockets; |
30 | using System.Reflection; | ||
31 | using log4net; | ||
32 | using OpenMetaverse; | 30 | using OpenMetaverse; |
33 | using OpenMetaverse.Packets; | 31 | using OpenMetaverse.Packets; |
34 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Communications.Cache; | ||
36 | 33 | ||
37 | namespace OpenSim.Region.ClientStack.LindenUDP | 34 | namespace OpenSim.Region.ClientStack.LindenUDP |
38 | { | 35 | { |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index eb88715..7aea9a3 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |||
@@ -31,11 +31,10 @@ using System.Collections.Generic; | |||
31 | using System.Net; | 31 | using System.Net; |
32 | using System.Net.Sockets; | 32 | using System.Net.Sockets; |
33 | using System.Reflection; | 33 | using System.Reflection; |
34 | using OpenMetaverse.Packets; | ||
35 | using log4net; | 34 | using log4net; |
36 | using Nini.Config; | 35 | using Nini.Config; |
36 | using OpenMetaverse.Packets; | ||
37 | using OpenSim.Framework; | 37 | using OpenSim.Framework; |
38 | using OpenSim.Framework.Communications.Cache; | ||
39 | using OpenSim.Region.Framework.Scenes; | 38 | using OpenSim.Region.Framework.Scenes; |
40 | 39 | ||
41 | namespace OpenSim.Region.ClientStack.LindenUDP | 40 | namespace OpenSim.Region.ClientStack.LindenUDP |
@@ -304,7 +303,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
304 | // the next set of UDP data is for a valid client. | 303 | // the next set of UDP data is for a valid client. |
305 | ResetServerEndPoint(e); | 304 | ResetServerEndPoint(e); |
306 | } | 305 | } |
307 | catch (System.ObjectDisposedException) | 306 | catch (ObjectDisposedException) |
308 | { | 307 | { |
309 | m_log.Info("[UDPSERVER]: UDP Object disposed. No need to worry about this if you're restarting the simulator."); | 308 | m_log.Info("[UDPSERVER]: UDP Object disposed. No need to worry about this if you're restarting the simulator."); |
310 | } | 309 | } |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUtil.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUtil.cs index d704967..ca26f5b 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUtil.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUtil.cs | |||
@@ -26,7 +26,6 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using OpenMetaverse; | 28 | using OpenMetaverse; |
29 | using System; | ||
30 | 29 | ||
31 | namespace OpenSim.Region.ClientStack.LindenUDP | 30 | namespace OpenSim.Region.ClientStack.LindenUDP |
32 | { | 31 | { |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs index b2cf14c..1f564b7 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/BasicCircuitTests.cs | |||
@@ -26,17 +26,13 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Net; | 28 | using System.Net; |
29 | using System.Threading; | 29 | using log4net.Config; |
30 | using log4net; | ||
31 | using Nini.Config; | 30 | using Nini.Config; |
32 | using NUnit.Framework; | 31 | using NUnit.Framework; |
33 | using NUnit.Framework.SyntaxHelpers; | 32 | using NUnit.Framework.SyntaxHelpers; |
34 | using OpenMetaverse; | 33 | using OpenMetaverse; |
35 | using OpenMetaverse.Packets; | 34 | using OpenMetaverse.Packets; |
36 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Communications; | ||
38 | using OpenSim.Region.ClientStack; | ||
39 | using OpenSim.Region.ClientStack.LindenUDP; | ||
40 | 36 | ||
41 | namespace OpenSim.Region.ClientStack.LindenUDP.Tests | 37 | namespace OpenSim.Region.ClientStack.LindenUDP.Tests |
42 | { | 38 | { |
@@ -51,7 +47,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests | |||
51 | { | 47 | { |
52 | try | 48 | try |
53 | { | 49 | { |
54 | log4net.Config.XmlConfigurator.Configure(); | 50 | XmlConfigurator.Configure(); |
55 | } | 51 | } |
56 | catch | 52 | catch |
57 | { | 53 | { |
@@ -118,7 +114,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests | |||
118 | UseCircuitCodePacket uccp = new UseCircuitCodePacket(); | 114 | UseCircuitCodePacket uccp = new UseCircuitCodePacket(); |
119 | 115 | ||
120 | UseCircuitCodePacket.CircuitCodeBlock uccpCcBlock | 116 | UseCircuitCodePacket.CircuitCodeBlock uccpCcBlock |
121 | = new OpenMetaverse.Packets.UseCircuitCodePacket.CircuitCodeBlock(); | 117 | = new UseCircuitCodePacket.CircuitCodeBlock(); |
122 | uccpCcBlock.Code = circuitCode; | 118 | uccpCcBlock.Code = circuitCode; |
123 | uccpCcBlock.ID = agentId; | 119 | uccpCcBlock.ID = agentId; |
124 | uccpCcBlock.SessionID = sessionId; | 120 | uccpCcBlock.SessionID = sessionId; |
@@ -169,7 +165,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests | |||
169 | UseCircuitCodePacket uccp = new UseCircuitCodePacket(); | 165 | UseCircuitCodePacket uccp = new UseCircuitCodePacket(); |
170 | 166 | ||
171 | UseCircuitCodePacket.CircuitCodeBlock uccpCcBlock | 167 | UseCircuitCodePacket.CircuitCodeBlock uccpCcBlock |
172 | = new OpenMetaverse.Packets.UseCircuitCodePacket.CircuitCodeBlock(); | 168 | = new UseCircuitCodePacket.CircuitCodeBlock(); |
173 | uccpCcBlock.Code = myCircuitCode; | 169 | uccpCcBlock.Code = myCircuitCode; |
174 | uccpCcBlock.ID = myAgentUuid; | 170 | uccpCcBlock.ID = myAgentUuid; |
175 | uccpCcBlock.SessionID = mySessionUuid; | 171 | uccpCcBlock.SessionID = mySessionUuid; |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/MockScene.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/MockScene.cs index 90d7d63..d4e906a 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/Tests/MockScene.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/MockScene.cs | |||
@@ -25,8 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Xml; | ||
29 | using Nini.Config; | ||
30 | using OpenMetaverse; | 28 | using OpenMetaverse; |
31 | using OpenSim.Framework; | 29 | using OpenSim.Framework; |
32 | using OpenSim.Region.Framework.Scenes; | 30 | using OpenSim.Region.Framework.Scenes; |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs index d421f82..6e429a4 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/PacketHandlerTests.cs | |||
@@ -25,14 +25,12 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Threading; | ||
29 | using Nini.Config; | 28 | using Nini.Config; |
30 | using NUnit.Framework; | 29 | using NUnit.Framework; |
31 | using NUnit.Framework.SyntaxHelpers; | 30 | using NUnit.Framework.SyntaxHelpers; |
32 | using OpenMetaverse; | 31 | using OpenMetaverse; |
33 | using OpenMetaverse.Packets; | 32 | using OpenMetaverse.Packets; |
34 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
35 | using OpenSim.Region.ClientStack.LindenUDP; | ||
36 | using OpenSim.Tests.Common.Mock; | 34 | using OpenSim.Tests.Common.Mock; |
37 | 35 | ||
38 | namespace OpenSim.Region.ClientStack.LindenUDP.Tests | 36 | namespace OpenSim.Region.ClientStack.LindenUDP.Tests |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLPacketServer.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLPacketServer.cs index 507fe82..667014e 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLPacketServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLPacketServer.cs | |||
@@ -26,9 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Collections.Generic; | 28 | using System.Collections.Generic; |
29 | using OpenMetaverse; | ||
30 | using OpenMetaverse.Packets; | 29 | using OpenMetaverse.Packets; |
31 | using OpenSim.Region.ClientStack.LindenUDP; | ||
32 | 30 | ||
33 | namespace OpenSim.Region.ClientStack.LindenUDP.Tests | 31 | namespace OpenSim.Region.ClientStack.LindenUDP.Tests |
34 | { | 32 | { |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs index 91fadba..53506d3 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/Tests/TestLLUDPServer.cs | |||
@@ -30,8 +30,6 @@ using System.Collections.Generic; | |||
30 | using System.Net; | 30 | using System.Net; |
31 | using System.Net.Sockets; | 31 | using System.Net.Sockets; |
32 | using OpenMetaverse.Packets; | 32 | using OpenMetaverse.Packets; |
33 | using OpenSim.Framework; | ||
34 | using OpenSim.Framework.Communications.Cache; | ||
35 | 33 | ||
36 | namespace OpenSim.Region.ClientStack.LindenUDP.Tests | 34 | namespace OpenSim.Region.ClientStack.LindenUDP.Tests |
37 | { | 35 | { |
diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs index 24ebd7e..55cf1ae 100644 --- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs +++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs | |||
@@ -26,19 +26,16 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Collections.Generic; | 28 | using System.Collections.Generic; |
29 | using System.IO; | ||
30 | using System.Net; | 29 | using System.Net; |
31 | using System.Reflection; | 30 | using System.Reflection; |
32 | using OpenMetaverse; | ||
33 | using log4net; | 31 | using log4net; |
34 | using Nini.Config; | 32 | using Nini.Config; |
33 | using OpenMetaverse; | ||
35 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
36 | using OpenSim.Framework.Communications; | 35 | using OpenSim.Framework.Communications; |
37 | using OpenSim.Framework.Communications.Cache; | ||
38 | using OpenSim.Framework.Servers; | 36 | using OpenSim.Framework.Servers; |
39 | using OpenSim.Region.Framework; | 37 | using OpenSim.Region.Framework; |
40 | using OpenSim.Region.Framework.Scenes; | 38 | using OpenSim.Region.Framework.Scenes; |
41 | using OpenSim.Region.CoreModules; | ||
42 | using OpenSim.Region.Physics.Manager; | 39 | using OpenSim.Region.Physics.Manager; |
43 | 40 | ||
44 | namespace OpenSim.Region.ClientStack | 41 | namespace OpenSim.Region.ClientStack |