Refactored out a few warnings related to Adam's bane OutPacket
parent
e8478dadc8
commit
536a92ca84
|
@ -933,6 +933,10 @@ namespace OpenSim.Framework
|
||||||
void sendLandObjectOwners(Dictionary<LLUUID, int> ownersAndCount);
|
void sendLandObjectOwners(Dictionary<LLUUID, int> ownersAndCount);
|
||||||
void sendLandParcelOverlay(byte[] data, int sequence_id);
|
void sendLandParcelOverlay(byte[] data, int sequence_id);
|
||||||
|
|
||||||
|
void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, LLUUID AssetFullID);
|
||||||
|
void SendConfirmXfer(ulong xferID, uint PacketID);
|
||||||
|
void SendXferRequest(ulong XferID, short AssetType, LLUUID vFileID, byte FilePath, byte[] FileName);
|
||||||
|
|
||||||
byte[] GetThrottlesPacked(float multiplier);
|
byte[] GetThrottlesPacked(float multiplier);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2200,7 +2200,35 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
terse.Header.Zerocoded = true;
|
terse.Header.Zerocoded = true;
|
||||||
OutPacket(terse, ThrottleOutPacketType.Task);
|
OutPacket(terse, ThrottleOutPacketType.Task);
|
||||||
}
|
}
|
||||||
|
public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, LLUUID AssetFullID)
|
||||||
|
{
|
||||||
|
AssetUploadCompletePacket newPack = new AssetUploadCompletePacket();
|
||||||
|
newPack.AssetBlock.Type = AssetType;
|
||||||
|
newPack.AssetBlock.Success = Success;
|
||||||
|
newPack.AssetBlock.UUID = AssetFullID;
|
||||||
|
newPack.Header.Zerocoded = true;
|
||||||
|
OutPacket(newPack, ThrottleOutPacketType.Asset);
|
||||||
|
}
|
||||||
|
public void SendXferRequest(ulong XferID, short AssetType, LLUUID vFileID, byte FilePath, byte[] FileName)
|
||||||
|
{
|
||||||
|
RequestXferPacket newPack = new RequestXferPacket();
|
||||||
|
newPack.XferID.ID = XferID;
|
||||||
|
newPack.XferID.VFileType = AssetType;
|
||||||
|
newPack.XferID.VFileID = vFileID;
|
||||||
|
newPack.XferID.FilePath = FilePath;
|
||||||
|
newPack.XferID.Filename = FileName;
|
||||||
|
newPack.Header.Zerocoded = true;
|
||||||
|
OutPacket(newPack, ThrottleOutPacketType.Asset);
|
||||||
|
|
||||||
|
}
|
||||||
|
public void SendConfirmXfer(ulong xferID, uint PacketID)
|
||||||
|
{
|
||||||
|
ConfirmXferPacketPacket newPack = new ConfirmXferPacketPacket();
|
||||||
|
newPack.XferID.ID = xferID;
|
||||||
|
newPack.XferID.Packet = PacketID;
|
||||||
|
newPack.Header.Zerocoded = true;
|
||||||
|
OutPacket(newPack, ThrottleOutPacketType.Asset);
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Estate Data Sending Methods
|
#region Estate Data Sending Methods
|
||||||
|
|
|
@ -190,11 +190,9 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
|
||||||
Array.Copy(data, 4, buffer2, 0, data.Length - 4);
|
Array.Copy(data, 4, buffer2, 0, data.Length - 4);
|
||||||
Asset.Data = buffer2;
|
Asset.Data = buffer2;
|
||||||
}
|
}
|
||||||
ConfirmXferPacketPacket newPack = new ConfirmXferPacketPacket();
|
|
||||||
newPack.XferID.ID = xferID;
|
ourClient.SendConfirmXfer(xferID, packetID);
|
||||||
newPack.XferID.Packet = packetID;
|
|
||||||
newPack.Header.Zerocoded = true;
|
|
||||||
ourClient.OutPacket(newPack, ThrottleOutPacketType.Asset);
|
|
||||||
if ((packetID & 0x80000000) != 0)
|
if ((packetID & 0x80000000) != 0)
|
||||||
{
|
{
|
||||||
SendCompleteMessage();
|
SendCompleteMessage();
|
||||||
|
@ -245,25 +243,16 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
|
||||||
{
|
{
|
||||||
UploadComplete = false;
|
UploadComplete = false;
|
||||||
XferID = Util.GetNextXferID();
|
XferID = Util.GetNextXferID();
|
||||||
RequestXferPacket newPack = new RequestXferPacket();
|
ourClient.SendXferRequest(XferID, Asset.Type, Asset.FullID, 0, new byte[0]);
|
||||||
newPack.XferID.ID = XferID;
|
|
||||||
newPack.XferID.VFileType = Asset.Type;
|
|
||||||
newPack.XferID.VFileID = Asset.FullID;
|
|
||||||
newPack.XferID.FilePath = 0;
|
|
||||||
newPack.XferID.Filename = new byte[0];
|
|
||||||
newPack.Header.Zerocoded = true;
|
|
||||||
ourClient.OutPacket(newPack, ThrottleOutPacketType.Asset);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void SendCompleteMessage()
|
protected void SendCompleteMessage()
|
||||||
{
|
{
|
||||||
UploadComplete = true;
|
UploadComplete = true;
|
||||||
AssetUploadCompletePacket newPack = new AssetUploadCompletePacket();
|
|
||||||
newPack.AssetBlock.Type = Asset.Type;
|
ourClient.SendAssetUploadCompleteMessage(Asset.Type, true, Asset.FullID);
|
||||||
newPack.AssetBlock.Success = true;
|
|
||||||
newPack.AssetBlock.UUID = Asset.FullID;
|
|
||||||
newPack.Header.Zerocoded = true;
|
|
||||||
ourClient.OutPacket(newPack, ThrottleOutPacketType.Asset);
|
|
||||||
m_finished = true;
|
m_finished = true;
|
||||||
if (m_createItem)
|
if (m_createItem)
|
||||||
{
|
{
|
||||||
|
|
|
@ -519,6 +519,15 @@ namespace OpenSim.Region.Examples.SimpleModule
|
||||||
OnCompleteMovementToRegion();
|
OnCompleteMovementToRegion();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, LLUUID AssetFullID)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public void SendConfirmXfer(ulong xferID, uint PacketID)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public void SendXferRequest(ulong XferID, short AssetType, LLUUID vFileID, byte FilePath, byte[] FileName)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue