diff options
author | Teravus Ovares | 2008-05-10 12:45:41 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-10 12:45:41 +0000 |
commit | b67f88a3a21c446f0c30e52cea45d8ff28942ec0 (patch) | |
tree | 6f41dce35dd8a94a24b73f766df39f7c1b5b7936 /OpenSim/Region/ClientStack | |
parent | Refactored out a few warnings related to Adam's bane OutPacket (diff) | |
download | opensim-SC_OLD-b67f88a3a21c446f0c30e52cea45d8ff28942ec0.zip opensim-SC_OLD-b67f88a3a21c446f0c30e52cea45d8ff28942ec0.tar.gz opensim-SC_OLD-b67f88a3a21c446f0c30e52cea45d8ff28942ec0.tar.bz2 opensim-SC_OLD-b67f88a3a21c446f0c30e52cea45d8ff28942ec0.tar.xz |
* Two more OutPacket refactors. TextureSender.
* The split image packet sender doesn't like to be refactored (images don't load after it's been refactored), so left that as is for the moment.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 053b077..8721356 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -2229,6 +2229,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2229 | newPack.Header.Zerocoded = true; | 2229 | newPack.Header.Zerocoded = true; |
2230 | OutPacket(newPack, ThrottleOutPacketType.Asset); | 2230 | OutPacket(newPack, ThrottleOutPacketType.Asset); |
2231 | } | 2231 | } |
2232 | public void SendImagePart(ushort numParts, LLUUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec) | ||
2233 | { | ||
2234 | ImageDataPacket im = new ImageDataPacket(); | ||
2235 | im.Header.Reliable = false; | ||
2236 | im.ImageID.Packets = numParts; | ||
2237 | im.ImageID.ID = ImageUUID; | ||
2238 | |||
2239 | if (ImageSize > 0) | ||
2240 | im.ImageID.Size = ImageSize; | ||
2241 | |||
2242 | im.ImageData.Data = ImageData; | ||
2243 | im.ImageID.Codec = imageCodec; | ||
2244 | im.Header.Zerocoded = true; | ||
2245 | OutPacket(im, ThrottleOutPacketType.Texture); | ||
2246 | } | ||
2232 | #endregion | 2247 | #endregion |
2233 | 2248 | ||
2234 | #region Estate Data Sending Methods | 2249 | #region Estate Data Sending Methods |