aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-15 18:16:43 +0000
committerJustin Clark-Casey (justincc)2011-11-15 18:16:43 +0000
commita3c5f76942270f17e359bfcf8f43c6db3d1f782d (patch)
tree65a49534eaa9a5f9aa83754b55d5f9532ee7dea9 /OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
parentRemove prebuild reference to now gone PumaCode.SvnDotNet.dll (diff)
downloadopensim-SC_OLD-a3c5f76942270f17e359bfcf8f43c6db3d1f782d.zip
opensim-SC_OLD-a3c5f76942270f17e359bfcf8f43c6db3d1f782d.tar.gz
opensim-SC_OLD-a3c5f76942270f17e359bfcf8f43c6db3d1f782d.tar.bz2
opensim-SC_OLD-a3c5f76942270f17e359bfcf8f43c6db3d1f782d.tar.xz
Removed unused and mostly commented out SceneCommunicationService methods
As far as I can see, the SCS is only now used for informing neighbours of up/down status and possibly sending child agent updates and close requests
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs81
1 files changed, 1 insertions, 80 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
index 3d56f9b..0e22156 100644
--- a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
@@ -55,57 +55,6 @@ namespace OpenSim.Region.Framework.Scenes
55 55
56 protected RegionInfo m_regionInfo; 56 protected RegionInfo m_regionInfo;
57 protected Scene m_scene; 57 protected Scene m_scene;
58 protected List<UUID> m_agentsInTransit;
59
60 /// <summary>
61 /// A user will arrive shortly, set up appropriate credentials so it can connect
62 /// </summary>
63// public event ExpectUserDelegate OnExpectUser;
64
65 /// <summary>
66 /// A Prim will arrive shortly
67 /// </summary>
68 public event CloseAgentConnection OnCloseAgentConnection;
69
70 /// <summary>
71 /// A new prim has arrived
72 /// </summary>
73// public event PrimCrossing OnPrimCrossingIntoRegion;
74
75 ///// <summary>
76 ///// A New Region is up and available
77 ///// </summary>
78 //public event RegionUp OnRegionUp;
79
80 /// <summary>
81 /// We have a child agent for this avatar and we're getting a status update about it
82 /// </summary>
83// public event ChildAgentUpdate OnChildAgentUpdate;
84 //public event RemoveKnownRegionsFromAvatarList OnRemoveKnownRegionFromAvatar;
85
86 /// <summary>
87 /// Time to log one of our users off. Grid Service sends this mostly
88 /// </summary>
89 public event LogOffUser OnLogOffUser;
90
91 /// <summary>
92 /// A region wants land data from us!
93 /// </summary>
94 public event GetLandData OnGetLandData;
95
96// private AgentCrossing handlerAvatarCrossingIntoRegion = null; // OnAvatarCrossingIntoRegion;
97// private ExpectUserDelegate handlerExpectUser = null; // OnExpectUser;
98// private CloseAgentConnection handlerCloseAgentConnection = null; // OnCloseAgentConnection;
99// private PrimCrossing handlerPrimCrossingIntoRegion = null; // OnPrimCrossingIntoRegion;
100 //private RegionUp handlerRegionUp = null; // OnRegionUp;
101// private ChildAgentUpdate handlerChildAgentUpdate = null; // OnChildAgentUpdate;
102 //private RemoveKnownRegionsFromAvatarList handlerRemoveKnownRegionFromAvatar = null; // OnRemoveKnownRegionFromAvatar;
103// private LogOffUser handlerLogOffUser = null;
104// private GetLandData handlerGetLandData = null; // OnGetLandData
105
106 public SceneCommunicationService()
107 {
108 }
109 58
110 public void SetScene(Scene s) 59 public void SetScene(Scene s)
111 { 60 {
@@ -113,23 +62,6 @@ namespace OpenSim.Region.Framework.Scenes
113 m_regionInfo = s.RegionInfo; 62 m_regionInfo = s.RegionInfo;
114 } 63 }
115 64
116 /// <summary>
117 /// Register a region with the grid
118 /// </summary>
119 /// <param name="regionInfos"></param>
120 /// <exception cref="System.Exception">Thrown if region registration fails.</exception>
121 public void RegisterRegion(IInterregionCommsOut comms_out, RegionInfo regionInfos)
122 {
123 }
124
125 /// <summary>
126 /// This region is shutting down, de-register all events!
127 /// De-Register region from Grid!
128 /// </summary>
129 public void Close()
130 {
131 }
132
133 public delegate void InformNeighbourThatRegionUpDelegate(INeighbourService nService, RegionInfo region, ulong regionhandle); 65 public delegate void InformNeighbourThatRegionUpDelegate(INeighbourService nService, RegionInfo region, ulong regionhandle);
134 66
135 private void InformNeighborsThatRegionisUpCompleted(IAsyncResult iar) 67 private void InformNeighborsThatRegionisUpCompleted(IAsyncResult iar)
@@ -165,7 +97,6 @@ namespace OpenSim.Region.Framework.Scenes
165 } 97 }
166 } 98 }
167 99
168
169 public void InformNeighborsThatRegionisUp(INeighbourService neighbourService, RegionInfo region) 100 public void InformNeighborsThatRegionisUp(INeighbourService neighbourService, RegionInfo region)
170 { 101 {
171 //m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: Sending InterRegion Notification that region is up " + region.RegionName); 102 //m_log.Info("[INTER]: " + debugRegionName + ": SceneCommunicationService: Sending InterRegion Notification that region is up " + region.RegionName);
@@ -182,7 +113,6 @@ namespace OpenSim.Region.Framework.Scenes
182 } 113 }
183 114
184 public delegate void SendChildAgentDataUpdateDelegate(AgentPosition cAgentData, UUID scopeID, GridRegion dest); 115 public delegate void SendChildAgentDataUpdateDelegate(AgentPosition cAgentData, UUID scopeID, GridRegion dest);
185
186 116
187 /// <summary> 117 /// <summary>
188 /// This informs all neighboring regions about the settings of it's child agent. 118 /// This informs all neighboring regions about the settings of it's child agent.
@@ -247,19 +177,11 @@ namespace OpenSim.Region.Framework.Scenes
247 177
248 } 178 }
249 179
250 //public delegate void SendCloseChildAgentDelegate(UUID agentID, ulong regionHandle);
251 //private void SendCloseChildAgentCompleted(IAsyncResult iar)
252 //{
253 // SendCloseChildAgentDelegate icon = (SendCloseChildAgentDelegate)iar.AsyncState;
254 // icon.EndInvoke(iar);
255 //}
256
257 /// <summary> 180 /// <summary>
258 /// Closes a child agent on a given region 181 /// Closes a child agent on a given region
259 /// </summary> 182 /// </summary>
260 protected void SendCloseChildAgent(UUID agentID, ulong regionHandle) 183 protected void SendCloseChildAgent(UUID agentID, ulong regionHandle)
261 { 184 {
262
263 m_log.Debug("[INTERGRID]: Sending close agent to " + regionHandle); 185 m_log.Debug("[INTERGRID]: Sending close agent to " + regionHandle);
264 // let's do our best, but there's not much we can do if the neighbour doesn't accept. 186 // let's do our best, but there's not much we can do if the neighbour doesn't accept.
265 187
@@ -291,6 +213,5 @@ namespace OpenSim.Region.Framework.Scenes
291 { 213 {
292 return m_scene.GridService.GetRegionsByName(UUID.Zero, name, maxNumber); 214 return m_scene.GridService.GetRegionsByName(UUID.Zero, name, maxNumber);
293 } 215 }
294
295 } 216 }
296} 217} \ No newline at end of file