aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
diff options
context:
space:
mode:
authorMike Rieker2010-05-27 21:31:10 -0400
committerMike Rieker2010-05-27 21:31:10 -0400
commit9ea42fdfab2ac99e24b386d67a08cf0024230f54 (patch)
treefdefa445346d03ad2d73b62687ffae4e3b635ba9 /OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
parentfix hanging output throttle arithmetic (diff)
parentPrevent a null ref (diff)
downloadopensim-SC-9ea42fdfab2ac99e24b386d67a08cf0024230f54.zip
opensim-SC-9ea42fdfab2ac99e24b386d67a08cf0024230f54.tar.gz
opensim-SC-9ea42fdfab2ac99e24b386d67a08cf0024230f54.tar.bz2
opensim-SC-9ea42fdfab2ac99e24b386d67a08cf0024230f54.tar.xz
Merge branch 'careminster-presence-refactor' of www.3dhosting.de:/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs22
1 files changed, 19 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 3888a0b..51cc763 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -831,6 +831,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
831 } 831 }
832 } 832 }
833 833
834 public void SendGenericMessage(string method, List<string> message)
835 {
836 GenericMessagePacket gmp = new GenericMessagePacket();
837 gmp.MethodData.Method = Util.StringToBytes256(method);
838 gmp.ParamList = new GenericMessagePacket.ParamListBlock[message.Count];
839 int i = 0;
840 foreach (string val in message)
841 {
842 gmp.ParamList[i] = new GenericMessagePacket.ParamListBlock();
843 gmp.ParamList[i++].Parameter = Util.StringToBytes256(val);
844 }
845
846 OutPacket(gmp, ThrottleOutPacketType.Task);
847 }
848
834 public void SendGenericMessage(string method, List<byte[]> message) 849 public void SendGenericMessage(string method, List<byte[]> message)
835 { 850 {
836 GenericMessagePacket gmp = new GenericMessagePacket(); 851 GenericMessagePacket gmp = new GenericMessagePacket();
@@ -4907,14 +4922,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4907 arg.SessionID = x.SessionID; 4922 arg.SessionID = x.SessionID;
4908 arg.State = x.State; 4923 arg.State = x.State;
4909 UpdateAgent handlerAgentUpdate = OnAgentUpdate; 4924 UpdateAgent handlerAgentUpdate = OnAgentUpdate;
4925 UpdateAgent handlerPreAgentUpdate = OnPreAgentUpdate;
4910 lastarg = arg; // save this set of arguments for nexttime 4926 lastarg = arg; // save this set of arguments for nexttime
4911 if (handlerAgentUpdate != null) 4927 if (handlerPreAgentUpdate != null)
4912 {
4913 OnPreAgentUpdate(this, arg); 4928 OnPreAgentUpdate(this, arg);
4929 if (handlerAgentUpdate != null)
4914 OnAgentUpdate(this, arg); 4930 OnAgentUpdate(this, arg);
4915 }
4916 4931
4917 handlerAgentUpdate = null; 4932 handlerAgentUpdate = null;
4933 handlerPreAgentUpdate = null;
4918 } 4934 }
4919 } 4935 }
4920 4936