Allow callers to set the invoice parameter for GenericMessage

user_profiles
Melanie 2013-04-22 22:24:41 +02:00
parent 6ddc39a676
commit 293a024c14
6 changed files with 22 additions and 12 deletions

View File

@ -1116,8 +1116,8 @@ namespace OpenSim.Framework
void SendInstantMessage(GridInstantMessage im); void SendInstantMessage(GridInstantMessage im);
void SendGenericMessage(string method, List<string> message); void SendGenericMessage(string method, UUID invoice, List<string> message);
void SendGenericMessage(string method, List<byte[]> message); void SendGenericMessage(string method, UUID invoice, List<byte[]> message);
void SendLayerData(float[] map); void SendLayerData(float[] map);
void SendLayerData(int px, int py, float[] map); void SendLayerData(int px, int py, float[] map);

View File

@ -900,9 +900,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
} }
} }
public void SendGenericMessage(string method, List<string> message) public void SendGenericMessage(string method, UUID invoice, List<string> message)
{ {
GenericMessagePacket gmp = new GenericMessagePacket(); GenericMessagePacket gmp = new GenericMessagePacket();
gmp.AgentData.AgentID = AgentId;
gmp.AgentData.SessionID = m_sessionId;
gmp.AgentData.TransactionID = invoice;
gmp.MethodData.Method = Util.StringToBytes256(method); gmp.MethodData.Method = Util.StringToBytes256(method);
gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count]; gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count];
int i = 0; int i = 0;
@ -915,9 +920,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(gmp, ThrottleOutPacketType.Task); OutPacket(gmp, ThrottleOutPacketType.Task);
} }
public void SendGenericMessage(string method, List<byte[]> message) public void SendGenericMessage(string method, UUID invoice, List<byte[]> message)
{ {
GenericMessagePacket gmp = new GenericMessagePacket(); GenericMessagePacket gmp = new GenericMessagePacket();
gmp.AgentData.AgentID = AgentId;
gmp.AgentData.SessionID = m_sessionId;
gmp.AgentData.TransactionID = invoice;
gmp.MethodData.Method = Util.StringToBytes256(method); gmp.MethodData.Method = Util.StringToBytes256(method);
gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count]; gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count];
int i = 0; int i = 0;

View File

@ -195,12 +195,12 @@ namespace OpenSim.Region.CoreModules.World.LightShare
if (m_scene.RegionInfo.WindlightSettings.valid) if (m_scene.RegionInfo.WindlightSettings.valid)
{ {
List<byte[]> param = compileWindlightSettings(wl); List<byte[]> param = compileWindlightSettings(wl);
client.SendGenericMessage("Windlight", param); client.SendGenericMessage("Windlight", UUID.Random(), param);
} }
else else
{ {
List<byte[]> param = new List<byte[]>(); List<byte[]> param = new List<byte[]>();
client.SendGenericMessage("WindlightReset", param); client.SendGenericMessage("WindlightReset", UUID.Random(), param);
} }
} }
} }

View File

@ -971,12 +971,12 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
// TODO // TODO
} }
public void SendGenericMessage(string method, List<string> message) public void SendGenericMessage(string method, UUID invoice, List<string> message)
{ {
} }
public void SendGenericMessage(string method, List<byte[]> message) public void SendGenericMessage(string method, UUID invoice, List<byte[]> message)
{ {
} }

View File

@ -620,12 +620,12 @@ namespace OpenSim.Region.OptionalModules.World.NPC
} }
public void SendGenericMessage(string method, List<string> message) public void SendGenericMessage(string method, UUID invoice, List<string> message)
{ {
} }
public void SendGenericMessage(string method, List<byte[]> message) public void SendGenericMessage(string method, UUID invoice, List<byte[]> message)
{ {
} }

View File

@ -541,12 +541,12 @@ namespace OpenSim.Tests.Common.Mock
} }
public void SendGenericMessage(string method, List<string> message) public void SendGenericMessage(string method, UUID invoice, List<string> message)
{ {
} }
public void SendGenericMessage(string method, List<byte[]> message) public void SendGenericMessage(string method, UUID invoice, List<byte[]> message)
{ {
} }