diff options
Diffstat (limited to 'OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs')
-rw-r--r-- | OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs b/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs index e808f82..09e6f7b 100644 --- a/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs +++ b/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs | |||
@@ -1,15 +1,34 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using OpenSim.Framework.Console; | ||
4 | 5 | ||
5 | namespace OpenSim.Grid.ScriptServer | 6 | namespace OpenSim.Grid.ScriptServer |
6 | { | 7 | { |
7 | // Maintains connection and communication to a region | 8 | // Maintains connection and communication to a region |
8 | internal class RegionConnectionManager | 9 | public class RegionConnectionManager: RegionBase |
9 | { | 10 | { |
10 | 11 | private LogBase m_log; | |
11 | public RegionConnectionManager() | 12 | private ScriptServerMain m_ScriptServerMain; |
13 | private object m_Connection; | ||
14 | public RegionConnectionManager(ScriptServerMain scm, LogBase logger, object Connection) | ||
12 | { | 15 | { |
16 | m_ScriptServerMain = scm; | ||
17 | m_log = logger; | ||
18 | m_Connection = Connection; | ||
19 | } | ||
20 | |||
21 | private void DataReceived(object objectID, object scriptID) | ||
22 | { | ||
23 | // TODO: HOW DO WE RECEIVE DATA? ASYNC? | ||
24 | // ANYHOW WE END UP HERE? | ||
25 | |||
26 | // NEW SCRIPT? ASK SCRIPTENGINE TO INITIALIZE IT | ||
27 | ScriptRez(); | ||
28 | |||
29 | // EVENT? DELIVER EVENT DIRECTLY TO SCRIPTENGINE | ||
30 | touch_start(); | ||
31 | |||
13 | } | 32 | } |
14 | 33 | ||
15 | } | 34 | } |