aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common/OpenSim.Framework
diff options
context:
space:
mode:
authorMW2007-06-24 15:24:02 +0000
committerMW2007-06-24 15:24:02 +0000
commit38a800400ae8c61eef0770b8c49aa6e637478e58 (patch)
tree2d53e3c67a0990bf199e8594240cdee8dc1a8494 /Common/OpenSim.Framework
parentMore work on CAPS handler. (diff)
downloadopensim-SC-38a800400ae8c61eef0770b8c49aa6e637478e58.zip
opensim-SC-38a800400ae8c61eef0770b8c49aa6e637478e58.tar.gz
opensim-SC-38a800400ae8c61eef0770b8c49aa6e637478e58.tar.bz2
opensim-SC-38a800400ae8c61eef0770b8c49aa6e637478e58.tar.xz
Disabled the CheckSum Server as it seems that isn't used by viewer 1.18.
Started to add support for asset uploads over CAPS (the asset is uploaded but seems to come out corrupt). Started to cleanup/rewrite the AssetCache. Fixed bug in MapBlock requests, where data for some regions wasn't being sent. Renamed PrimData's Texture to TextureEntry. most likely a few other small changes.
Diffstat (limited to 'Common/OpenSim.Framework')
-rw-r--r--Common/OpenSim.Framework/Interfaces/IClientAPI.cs2
-rw-r--r--Common/OpenSim.Framework/Types/PrimData.cs14
2 files changed, 8 insertions, 8 deletions
diff --git a/Common/OpenSim.Framework/Interfaces/IClientAPI.cs b/Common/OpenSim.Framework/Interfaces/IClientAPI.cs
index ea38f06..9028d8d 100644
--- a/Common/OpenSim.Framework/Interfaces/IClientAPI.cs
+++ b/Common/OpenSim.Framework/Interfaces/IClientAPI.cs
@@ -144,7 +144,7 @@ namespace OpenSim.Framework.Interfaces
144 void SendTeleportCancel(); 144 void SendTeleportCancel();
145 void SendTeleportLocationStart(); 145 void SendTeleportLocationStart();
146 146
147 void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos); 147 void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID, uint avatarLocalID, LLVector3 Pos, byte[] textureEntry);
148 void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLVector3 velocity); 148 void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position, LLVector3 velocity);
149 149
150 void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint); 150 void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint);
diff --git a/Common/OpenSim.Framework/Types/PrimData.cs b/Common/OpenSim.Framework/Types/PrimData.cs
index 56d41b3..f84ae3e 100644
--- a/Common/OpenSim.Framework/Types/PrimData.cs
+++ b/Common/OpenSim.Framework/Types/PrimData.cs
@@ -58,7 +58,7 @@ namespace OpenSim.Framework.Types
58 public sbyte PathTaperY; 58 public sbyte PathTaperY;
59 public sbyte PathTwist; 59 public sbyte PathTwist;
60 public sbyte PathTwistBegin; 60 public sbyte PathTwistBegin;
61 public byte[] Texture; 61 public byte[] TextureEntry; // a LL textureEntry in byte[] format
62 62
63 public Int32 CreationDate; 63 public Int32 CreationDate;
64 public uint OwnerMask = FULL_MASK_PERMISSIONS; 64 public uint OwnerMask = FULL_MASK_PERMISSIONS;
@@ -105,8 +105,8 @@ namespace OpenSim.Framework.Types
105 this.PathTwist = (sbyte)data[i++]; 105 this.PathTwist = (sbyte)data[i++];
106 this.PathTwistBegin = (sbyte)data[i++]; 106 this.PathTwistBegin = (sbyte)data[i++];
107 ushort length = (ushort)(data[i++] + (data[i++] << 8)); 107 ushort length = (ushort)(data[i++] + (data[i++] << 8));
108 this.Texture = new byte[length]; 108 this.TextureEntry = new byte[length];
109 Array.Copy(data, i, Texture, 0, length); i += length; 109 Array.Copy(data, i, TextureEntry, 0, length); i += length;
110 this.CreationDate = (Int32)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24)); 110 this.CreationDate = (Int32)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24));
111 this.OwnerMask = (uint)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24)); 111 this.OwnerMask = (uint)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24));
112 this.NextOwnerMask = (uint)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24)); 112 this.NextOwnerMask = (uint)(data[i++] + (data[i++] << 8) + (data[i++] << 16) + (data[i++] << 24));
@@ -123,7 +123,7 @@ namespace OpenSim.Framework.Types
123 public byte[] ToBytes() 123 public byte[] ToBytes()
124 { 124 {
125 int i = 0; 125 int i = 0;
126 byte[] bytes = new byte[126 + Texture.Length]; 126 byte[] bytes = new byte[126 + TextureEntry.Length];
127 Array.Copy(OwnerID.GetBytes(), 0, bytes, i, 16); i += 16; 127 Array.Copy(OwnerID.GetBytes(), 0, bytes, i, 16); i += 16;
128 bytes[i++] = this.PCode; 128 bytes[i++] = this.PCode;
129 bytes[i++] = (byte)(this.PathBegin % 256); 129 bytes[i++] = (byte)(this.PathBegin % 256);
@@ -154,9 +154,9 @@ namespace OpenSim.Framework.Types
154 bytes[i++] = ((byte)this.PathTaperY); 154 bytes[i++] = ((byte)this.PathTaperY);
155 bytes[i++] = ((byte)this.PathTwist); 155 bytes[i++] = ((byte)this.PathTwist);
156 bytes[i++] = ((byte)this.PathTwistBegin); 156 bytes[i++] = ((byte)this.PathTwistBegin);
157 bytes[i++] = (byte)(Texture.Length % 256); 157 bytes[i++] = (byte)(TextureEntry.Length % 256);
158 bytes[i++] = (byte)((Texture.Length >> 8) % 256); 158 bytes[i++] = (byte)((TextureEntry.Length >> 8) % 256);
159 Array.Copy(Texture, 0, bytes, i, Texture.Length); i += Texture.Length; 159 Array.Copy(TextureEntry, 0, bytes, i, TextureEntry.Length); i += TextureEntry.Length;
160 bytes[i++] = (byte)(this.CreationDate % 256); 160 bytes[i++] = (byte)(this.CreationDate % 256);
161 bytes[i++] = (byte)((this.CreationDate >> 8) % 256); 161 bytes[i++] = (byte)((this.CreationDate >> 8) % 256);
162 bytes[i++] = (byte)((this.CreationDate >> 16) % 256); 162 bytes[i++] = (byte)((this.CreationDate >> 16) % 256);