diff options
author | Melanie | 2013-04-22 22:24:41 +0200 |
---|---|---|
committer | Melanie | 2013-04-22 22:39:08 +0100 |
commit | 293a024c141d3567d42169f625bc449b89a1b59d (patch) | |
tree | f8d7064f5e2fa813ee8a15f1b6e235d3c79620db | |
parent | Clean up unused config and config comments. (diff) | |
download | opensim-SC-293a024c141d3567d42169f625bc449b89a1b59d.zip opensim-SC-293a024c141d3567d42169f625bc449b89a1b59d.tar.gz opensim-SC-293a024c141d3567d42169f625bc449b89a1b59d.tar.bz2 opensim-SC-293a024c141d3567d42169f625bc449b89a1b59d.tar.xz |
Allow callers to set the invoice parameter for GenericMessage
6 files changed, 22 insertions, 12 deletions
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index f6b7689..10ead39 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs | |||
@@ -1116,8 +1116,8 @@ namespace OpenSim.Framework | |||
1116 | 1116 | ||
1117 | void SendInstantMessage(GridInstantMessage im); | 1117 | void SendInstantMessage(GridInstantMessage im); |
1118 | 1118 | ||
1119 | void SendGenericMessage(string method, List<string> message); | 1119 | void SendGenericMessage(string method, UUID invoice, List<string> message); |
1120 | void SendGenericMessage(string method, List<byte[]> message); | 1120 | void SendGenericMessage(string method, UUID invoice, List<byte[]> message); |
1121 | 1121 | ||
1122 | void SendLayerData(float[] map); | 1122 | void SendLayerData(float[] map); |
1123 | void SendLayerData(int px, int py, float[] map); | 1123 | void SendLayerData(int px, int py, float[] map); |
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 1609012..1eb953c 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -900,9 +900,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
900 | } | 900 | } |
901 | } | 901 | } |
902 | 902 | ||
903 | public void SendGenericMessage(string method, List<string> message) | 903 | public void SendGenericMessage(string method, UUID invoice, List<string> message) |
904 | { | 904 | { |
905 | GenericMessagePacket gmp = new GenericMessagePacket(); | 905 | GenericMessagePacket gmp = new GenericMessagePacket(); |
906 | |||
907 | gmp.AgentData.AgentID = AgentId; | ||
908 | gmp.AgentData.SessionID = m_sessionId; | ||
909 | gmp.AgentData.TransactionID = invoice; | ||
910 | |||
906 | gmp.MethodData.Method = Util.StringToBytes256(method); | 911 | gmp.MethodData.Method = Util.StringToBytes256(method); |
907 | gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count]; | 912 | gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count]; |
908 | int i = 0; | 913 | int i = 0; |
@@ -915,9 +920,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
915 | OutPacket(gmp, ThrottleOutPacketType.Task); | 920 | OutPacket(gmp, ThrottleOutPacketType.Task); |
916 | } | 921 | } |
917 | 922 | ||
918 | public void SendGenericMessage(string method, List<byte[]> message) | 923 | public void SendGenericMessage(string method, UUID invoice, List<byte[]> message) |
919 | { | 924 | { |
920 | GenericMessagePacket gmp = new GenericMessagePacket(); | 925 | GenericMessagePacket gmp = new GenericMessagePacket(); |
926 | |||
927 | gmp.AgentData.AgentID = AgentId; | ||
928 | gmp.AgentData.SessionID = m_sessionId; | ||
929 | gmp.AgentData.TransactionID = invoice; | ||
930 | |||
921 | gmp.MethodData.Method = Util.StringToBytes256(method); | 931 | gmp.MethodData.Method = Util.StringToBytes256(method); |
922 | gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count]; | 932 | gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count]; |
923 | int i = 0; | 933 | int i = 0; |
diff --git a/OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs b/OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs index 4e20196..89f3280 100644 --- a/OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs +++ b/OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs | |||
@@ -195,12 +195,12 @@ namespace OpenSim.Region.CoreModules.World.LightShare | |||
195 | if (m_scene.RegionInfo.WindlightSettings.valid) | 195 | if (m_scene.RegionInfo.WindlightSettings.valid) |
196 | { | 196 | { |
197 | List<byte[]> param = compileWindlightSettings(wl); | 197 | List<byte[]> param = compileWindlightSettings(wl); |
198 | client.SendGenericMessage("Windlight", param); | 198 | client.SendGenericMessage("Windlight", UUID.Random(), param); |
199 | } | 199 | } |
200 | else | 200 | else |
201 | { | 201 | { |
202 | List<byte[]> param = new List<byte[]>(); | 202 | List<byte[]> param = new List<byte[]>(); |
203 | client.SendGenericMessage("WindlightReset", param); | 203 | client.SendGenericMessage("WindlightReset", UUID.Random(), param); |
204 | } | 204 | } |
205 | } | 205 | } |
206 | } | 206 | } |
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs index 0ac56fa..915ebd8 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs | |||
@@ -971,12 +971,12 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server | |||
971 | // TODO | 971 | // TODO |
972 | } | 972 | } |
973 | 973 | ||
974 | public void SendGenericMessage(string method, List<string> message) | 974 | public void SendGenericMessage(string method, UUID invoice, List<string> message) |
975 | { | 975 | { |
976 | 976 | ||
977 | } | 977 | } |
978 | 978 | ||
979 | public void SendGenericMessage(string method, List<byte[]> message) | 979 | public void SendGenericMessage(string method, UUID invoice, List<byte[]> message) |
980 | { | 980 | { |
981 | 981 | ||
982 | } | 982 | } |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 6bd27f0..0ee00e9 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -620,12 +620,12 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
620 | 620 | ||
621 | } | 621 | } |
622 | 622 | ||
623 | public void SendGenericMessage(string method, List<string> message) | 623 | public void SendGenericMessage(string method, UUID invoice, List<string> message) |
624 | { | 624 | { |
625 | 625 | ||
626 | } | 626 | } |
627 | 627 | ||
628 | public void SendGenericMessage(string method, List<byte[]> message) | 628 | public void SendGenericMessage(string method, UUID invoice, List<byte[]> message) |
629 | { | 629 | { |
630 | 630 | ||
631 | } | 631 | } |
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs index 2d4fef1..d26e3f7 100644 --- a/OpenSim/Tests/Common/Mock/TestClient.cs +++ b/OpenSim/Tests/Common/Mock/TestClient.cs | |||
@@ -541,12 +541,12 @@ namespace OpenSim.Tests.Common.Mock | |||
541 | 541 | ||
542 | } | 542 | } |
543 | 543 | ||
544 | public void SendGenericMessage(string method, List<string> message) | 544 | public void SendGenericMessage(string method, UUID invoice, List<string> message) |
545 | { | 545 | { |
546 | 546 | ||
547 | } | 547 | } |
548 | 548 | ||
549 | public void SendGenericMessage(string method, List<byte[]> message) | 549 | public void SendGenericMessage(string method, UUID invoice, List<byte[]> message) |
550 | { | 550 | { |
551 | 551 | ||
552 | } | 552 | } |