aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs32
1 files changed, 15 insertions, 17 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs b/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs
index 5752e2b..40a910d 100644
--- a/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs
+++ b/OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs
@@ -1,4 +1,4 @@
1/* 1/*
2* Copyright (c) Contributors, http://opensimulator.org/ 2* Copyright (c) Contributors, http://opensimulator.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders. 3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4* 4*
@@ -44,19 +44,19 @@ namespace OpenSim.Region.ScriptEngine.Common
44 public event ReceiveCommandDelegate ReceiveCommand; 44 public event ReceiveCommandDelegate ReceiveCommand;
45 System.Collections.Generic.Dictionary<string, Type> TypeDictionary = new Dictionary<string, Type>(); 45 System.Collections.Generic.Dictionary<string, Type> TypeDictionary = new Dictionary<string, Type>();
46 Type[] Types = 46 Type[] Types =
47 { 47 {
48 typeof(System.String), 48 typeof(System.String),
49 typeof(System.Int16), 49 typeof(System.Int16),
50 typeof(System.Int32), 50 typeof(System.Int32),
51 typeof(System.Int64), 51 typeof(System.Int64),
52 typeof(System.Double), 52 typeof(System.Double),
53 typeof(System.Decimal), 53 typeof(System.Decimal),
54 typeof(System.Array), 54 typeof(System.Array),
55 typeof(LLUUID), 55 typeof(LLUUID),
56 typeof(System.UInt16), 56 typeof(System.UInt16),
57 typeof(System.UInt32), 57 typeof(System.UInt32),
58 typeof(System.UInt64) 58 typeof(System.UInt64)
59 }; 59 };
60 60
61 // TODO: Maybe we should move queue into TCPSocket so we won't have to keep one queue instance per connection 61 // TODO: Maybe we should move queue into TCPSocket so we won't have to keep one queue instance per connection
62 private System.Collections.Generic.Dictionary<int, InQueueStruct> InQueue = new Dictionary<int, InQueueStruct>(); 62 private System.Collections.Generic.Dictionary<int, InQueueStruct> InQueue = new Dictionary<int, InQueueStruct>();
@@ -112,7 +112,6 @@ namespace OpenSim.Region.ScriptEngine.Common
112 112
113 private void ProcessQueue(int ID) 113 private void ProcessQueue(int ID)
114 { 114 {
115
116 // This is just a temp implementation -- not so fast :) 115 // This is just a temp implementation -- not so fast :)
117 116
118 InQueueStruct myIQS = InQueue[ID]; 117 InQueueStruct myIQS = InQueue[ID];
@@ -122,7 +121,6 @@ namespace OpenSim.Region.ScriptEngine.Common
122 string receivedData = Encoding.ASCII.GetString(myIQS.Queue, 0, myIQS.QueueSize); 121 string receivedData = Encoding.ASCII.GetString(myIQS.Queue, 0, myIQS.QueueSize);
123 Debug.WriteLine("RAW: " + receivedData); 122 Debug.WriteLine("RAW: " + receivedData);
124 123
125
126 byte newLine = 10; 124 byte newLine = 10;
127 while (true) 125 while (true)
128 { 126 {
@@ -202,4 +200,4 @@ namespace OpenSim.Region.ScriptEngine.Common
202 TCPS.Send(ID, byteData, 0, byteData.Length); 200 TCPS.Send(ID, byteData, 0, byteData.Length);
203 } 201 }
204 } 202 }
205} \ No newline at end of file 203}