diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
4 files changed, 18 insertions, 17 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs b/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs index b53a2fb..9869a99 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs | |||
@@ -31,7 +31,6 @@ using OpenMetaverse; | |||
31 | using OpenMetaverse.Imaging; | 31 | using OpenMetaverse.Imaging; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Region.Framework.Interfaces; | 33 | using OpenSim.Region.Framework.Interfaces; |
34 | using OpenSim.Region.Framework.Scenes.Hypergrid; | ||
35 | using OpenSim.Services.Interfaces; | 34 | using OpenSim.Services.Interfaces; |
36 | using log4net; | 35 | using log4net; |
37 | using System.Reflection; | 36 | using System.Reflection; |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 6dc6f01..4e2a0b7 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -40,11 +40,10 @@ using OpenMetaverse.Packets; | |||
40 | using OpenMetaverse.StructuredData; | 40 | using OpenMetaverse.StructuredData; |
41 | using OpenSim.Framework; | 41 | using OpenSim.Framework; |
42 | using OpenSim.Framework.Client; | 42 | using OpenSim.Framework.Client; |
43 | using OpenSim.Framework.Communications.Cache; | 43 | |
44 | using OpenSim.Framework.Statistics; | 44 | using OpenSim.Framework.Statistics; |
45 | using OpenSim.Region.Framework.Interfaces; | 45 | using OpenSim.Region.Framework.Interfaces; |
46 | using OpenSim.Region.Framework.Scenes; | 46 | using OpenSim.Region.Framework.Scenes; |
47 | using OpenSim.Region.Framework.Scenes.Hypergrid; | ||
48 | using OpenSim.Services.Interfaces; | 47 | using OpenSim.Services.Interfaces; |
49 | using Timer = System.Timers.Timer; | 48 | using Timer = System.Timers.Timer; |
50 | using AssetLandmark = OpenSim.Framework.AssetLandmark; | 49 | using AssetLandmark = OpenSim.Framework.AssetLandmark; |
@@ -351,6 +350,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
351 | private bool m_SendLogoutPacketWhenClosing = true; | 350 | private bool m_SendLogoutPacketWhenClosing = true; |
352 | private AgentUpdateArgs lastarg; | 351 | private AgentUpdateArgs lastarg; |
353 | private bool m_IsActive = true; | 352 | private bool m_IsActive = true; |
353 | private bool m_IsLoggingOut = false; | ||
354 | 354 | ||
355 | protected Dictionary<PacketType, PacketProcessor> m_packetHandlers = new Dictionary<PacketType, PacketProcessor>(); | 355 | protected Dictionary<PacketType, PacketProcessor> m_packetHandlers = new Dictionary<PacketType, PacketProcessor>(); |
356 | protected Dictionary<string, GenericMessage> m_genericPacketHandlers = new Dictionary<string, GenericMessage>(); //PauPaw:Local Generic Message handlers | 356 | protected Dictionary<string, GenericMessage> m_genericPacketHandlers = new Dictionary<string, GenericMessage>(); //PauPaw:Local Generic Message handlers |
@@ -414,6 +414,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
414 | get { return m_IsActive; } | 414 | get { return m_IsActive; } |
415 | set { m_IsActive = value; } | 415 | set { m_IsActive = value; } |
416 | } | 416 | } |
417 | public bool IsLoggingOut | ||
418 | { | ||
419 | get { return m_IsLoggingOut; } | ||
420 | set { m_IsLoggingOut = value; } | ||
421 | } | ||
422 | |||
417 | public bool SendLogoutPacketWhenClosing { set { m_SendLogoutPacketWhenClosing = value; } } | 423 | public bool SendLogoutPacketWhenClosing { set { m_SendLogoutPacketWhenClosing = value; } } |
418 | 424 | ||
419 | #endregion Properties | 425 | #endregion Properties |
@@ -4063,10 +4069,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4063 | EstateCovenantReplyPacket.DataBlock edata = new EstateCovenantReplyPacket.DataBlock(); | 4069 | EstateCovenantReplyPacket.DataBlock edata = new EstateCovenantReplyPacket.DataBlock(); |
4064 | edata.CovenantID = covenant; | 4070 | edata.CovenantID = covenant; |
4065 | edata.CovenantTimestamp = 0; | 4071 | edata.CovenantTimestamp = 0; |
4066 | if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero) | 4072 | edata.EstateOwnerID = m_scene.RegionInfo.EstateSettings.EstateOwner; |
4067 | edata.EstateOwnerID = m_scene.RegionInfo.EstateSettings.EstateOwner; | ||
4068 | else | ||
4069 | edata.EstateOwnerID = m_scene.RegionInfo.MasterAvatarAssignedUUID; | ||
4070 | edata.EstateName = Utils.StringToBytes(m_scene.RegionInfo.EstateSettings.EstateName); | 4073 | edata.EstateName = Utils.StringToBytes(m_scene.RegionInfo.EstateSettings.EstateName); |
4071 | einfopack.Data = edata; | 4074 | einfopack.Data = edata; |
4072 | OutPacket(einfopack, ThrottleOutPacketType.Task); | 4075 | OutPacket(einfopack, ThrottleOutPacketType.Task); |
@@ -4087,8 +4090,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
4087 | 4090 | ||
4088 | //Sending Estate Settings | 4091 | //Sending Estate Settings |
4089 | returnblock[0].Parameter = Utils.StringToBytes(estateName); | 4092 | returnblock[0].Parameter = Utils.StringToBytes(estateName); |
4090 | // TODO: remove this cruft once MasterAvatar is fully deprecated | ||
4091 | // | ||
4092 | returnblock[1].Parameter = Utils.StringToBytes(estateOwner.ToString()); | 4093 | returnblock[1].Parameter = Utils.StringToBytes(estateOwner.ToString()); |
4093 | returnblock[2].Parameter = Utils.StringToBytes(estateID.ToString()); | 4094 | returnblock[2].Parameter = Utils.StringToBytes(estateID.ToString()); |
4094 | 4095 | ||
@@ -5514,6 +5515,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5514 | // for the client session anyway, in order to protect ourselves against bad code in plugins | 5515 | // for the client session anyway, in order to protect ourselves against bad code in plugins |
5515 | try | 5516 | try |
5516 | { | 5517 | { |
5518 | |||
5517 | byte[] visualparams = new byte[appear.VisualParam.Length]; | 5519 | byte[] visualparams = new byte[appear.VisualParam.Length]; |
5518 | for (int i = 0; i < appear.VisualParam.Length; i++) | 5520 | for (int i = 0; i < appear.VisualParam.Length; i++) |
5519 | visualparams[i] = appear.VisualParam[i].ParamValue; | 5521 | visualparams[i] = appear.VisualParam[i].ParamValue; |
@@ -6997,7 +6999,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
6997 | assetRequestItem = invService.GetItem(assetRequestItem); | 6999 | assetRequestItem = invService.GetItem(assetRequestItem); |
6998 | if (assetRequestItem == null) | 7000 | if (assetRequestItem == null) |
6999 | { | 7001 | { |
7000 | assetRequestItem = ((Scene)m_scene).CommsManager.UserProfileCacheService.LibraryRoot.FindItem(itemID); | 7002 | ILibraryService lib = m_scene.RequestModuleInterface<ILibraryService>(); |
7003 | if (lib != null) | ||
7004 | assetRequestItem = lib.LibraryRootFolder.FindItem(itemID); | ||
7001 | if (assetRequestItem == null) | 7005 | if (assetRequestItem == null) |
7002 | return true; | 7006 | return true; |
7003 | } | 7007 | } |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 3c4fa72..2d956fa 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | |||
@@ -919,7 +919,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
919 | // Remove this client from the scene | 919 | // Remove this client from the scene |
920 | IClientAPI client; | 920 | IClientAPI client; |
921 | if (m_scene.TryGetClient(udpClient.AgentID, out client)) | 921 | if (m_scene.TryGetClient(udpClient.AgentID, out client)) |
922 | { | ||
923 | client.IsLoggingOut = true; | ||
922 | client.Close(); | 924 | client.Close(); |
925 | } | ||
923 | } | 926 | } |
924 | 927 | ||
925 | private void IncomingPacketHandler() | 928 | private void IncomingPacketHandler() |
diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs index c7aeca14..0ec87e5 100644 --- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs +++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs | |||
@@ -56,13 +56,6 @@ namespace OpenSim.Region.ClientStack | |||
56 | 56 | ||
57 | protected uint m_httpServerPort; | 57 | protected uint m_httpServerPort; |
58 | 58 | ||
59 | public CommunicationsManager CommunicationsManager | ||
60 | { | ||
61 | get { return m_commsManager; } | ||
62 | set { m_commsManager = value; } | ||
63 | } | ||
64 | protected CommunicationsManager m_commsManager; | ||
65 | |||
66 | protected StorageManager m_storageManager; | 59 | protected StorageManager m_storageManager; |
67 | 60 | ||
68 | protected ClientStackManager m_clientStackManager; | 61 | protected ClientStackManager m_clientStackManager; |
@@ -111,6 +104,8 @@ namespace OpenSim.Region.ClientStack | |||
111 | m_log.Info("[REGION]: Starting HTTP server"); | 104 | m_log.Info("[REGION]: Starting HTTP server"); |
112 | m_httpServer.Start(); | 105 | m_httpServer.Start(); |
113 | 106 | ||
107 | MainServer.Instance = m_httpServer; | ||
108 | |||
114 | base.StartupSpecific(); | 109 | base.StartupSpecific(); |
115 | } | 110 | } |
116 | 111 | ||