aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Common/OpenGrid.Framework.Communications/InterSimComms
diff options
context:
space:
mode:
authorMW2007-06-10 19:08:51 +0000
committerMW2007-06-10 19:08:51 +0000
commitfd1a0a13749338ead01eddf59663704aae539ea7 (patch)
tree017c1a182764ecd1bd60f661f89e8e318b50bdfc /Common/OpenGrid.Framework.Communications/InterSimComms
parentAdded SandBoxManager which in sandbox mode, acts as the backend server for th... (diff)
downloadopensim-SC-fd1a0a13749338ead01eddf59663704aae539ea7.zip
opensim-SC-fd1a0a13749338ead01eddf59663704aae539ea7.tar.gz
opensim-SC-fd1a0a13749338ead01eddf59663704aae539ea7.tar.bz2
opensim-SC-fd1a0a13749338ead01eddf59663704aae539ea7.tar.xz
Added InterSimComms (Likely to be renamed) to the commsManager and moved the InformClientOfNeighbours method into that.
Diffstat (limited to 'Common/OpenGrid.Framework.Communications/InterSimComms')
-rw-r--r--Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs19
-rw-r--r--Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs29
-rw-r--r--Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs16
3 files changed, 64 insertions, 0 deletions
diff --git a/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs
new file mode 100644
index 0000000..972506f
--- /dev/null
+++ b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsBase.cs
@@ -0,0 +1,19 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenSim.Framework.Types;
5using OpenSim.Framework;
6
7namespace OpenGrid.Framework.Communications
8{
9 public abstract class InterSimsCommsBase
10 {
11 /// <summary>
12 /// Informs a neighbouring sim to expect a child agent
13 /// </summary>
14 /// <param name="regionHandle"></param>
15 /// <param name="agentData"></param>
16 /// <returns></returns>
17 public abstract bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData);
18 }
19}
diff --git a/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs
new file mode 100644
index 0000000..bce146f
--- /dev/null
+++ b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsLocal.cs
@@ -0,0 +1,29 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenSim.Framework.Types;
5using OpenSim.Framework;
6
7namespace OpenGrid.Framework.Communications
8{
9 public class InterSimsCommsLocal : InterSimsCommsBase
10 {
11 private SandBoxManager sandBoxManager;
12
13 public InterSimsCommsLocal(SandBoxManager sandManager)
14 {
15 sandBoxManager = sandManager;
16 }
17
18 /// <summary>
19 /// Informs a neighbouring sim to expect a child agent
20 /// </summary>
21 /// <param name="regionHandle"></param>
22 /// <param name="agentData"></param>
23 /// <returns></returns>
24 public override bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData
25 {
26 return sandBoxManager.InformNeighbourOfChildAgent(regionHandle, agentData);
27 }
28 }
29}
diff --git a/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs
new file mode 100644
index 0000000..b6e98da
--- /dev/null
+++ b/Common/OpenGrid.Framework.Communications/InterSimComms/InterSimsCommsOGS.cs
@@ -0,0 +1,16 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenSim.Framework.Types;
5using OpenSim.Framework;
6
7namespace OpenGrid.Framework.Communications
8{
9 public class InterSimsCommsOGS : InterSimsCommsBase
10 {
11 public override bool InformNeighbourOfChildAgent(ulong regionHandle, AgentCircuitData agentData) //should change from agentCircuitData
12 {
13 return false;
14 }
15 }
16}