aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/Local
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Communications/Local')
-rw-r--r--OpenSim/Region/Communications/Local/CommunicationsLocal.cs2
-rw-r--r--OpenSim/Region/Communications/Local/LocalBackEndServices.cs217
2 files changed, 1 insertions, 218 deletions
diff --git a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
index 3a5c33e..59a1293 100644
--- a/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
+++ b/OpenSim/Region/Communications/Local/CommunicationsLocal.cs
@@ -41,7 +41,6 @@ namespace OpenSim.Region.Communications.Local
41 IUserService userService, 41 IUserService userService,
42 IUserAdminService userServiceAdmin, 42 IUserAdminService userServiceAdmin,
43 LocalInventoryService inventoryService, 43 LocalInventoryService inventoryService,
44 IInterRegionCommunications interRegionService,
45 IGridServices gridService, IMessagingService messageService, 44 IGridServices gridService, IMessagingService messageService,
46 LibraryRootFolder libraryRootFolder, bool dumpAssetsToFile) 45 LibraryRootFolder libraryRootFolder, bool dumpAssetsToFile)
47 : base(serversInfo, httpServer, assetCache, dumpAssetsToFile, libraryRootFolder) 46 : base(serversInfo, httpServer, assetCache, dumpAssetsToFile, libraryRootFolder)
@@ -53,7 +52,6 @@ namespace OpenSim.Region.Communications.Local
53 m_userAdminService = userServiceAdmin; 52 m_userAdminService = userServiceAdmin;
54 m_avatarService = (IAvatarService)userService; 53 m_avatarService = (IAvatarService)userService;
55 m_gridService = gridService; 54 m_gridService = gridService;
56 m_interRegion = interRegionService;
57 m_messageService = messageService; 55 m_messageService = messageService;
58 } 56 }
59 } 57 }
diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
index fc2f422..306ea27 100644
--- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
@@ -36,7 +36,7 @@ using OpenSim.Framework.Communications;
36 36
37namespace OpenSim.Region.Communications.Local 37namespace OpenSim.Region.Communications.Local
38{ 38{
39 public class LocalBackEndServices : IGridServices, IInterRegionCommunications 39 public class LocalBackEndServices : IGridServices
40 { 40 {
41 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 41 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
42 42
@@ -244,46 +244,6 @@ namespace OpenSim.Region.Communications.Local
244 return mapBlocks; 244 return mapBlocks;
245 } 245 }
246 246
247 public bool TellRegionToCloseChildConnection(ulong regionHandle, UUID agentID)
248 {
249 if (m_regionListeners.ContainsKey(regionHandle))
250 {
251 return m_regionListeners[regionHandle].TriggerTellRegionToCloseChildConnection(agentID);
252 }
253
254 return false;
255 }
256
257 public virtual bool RegionUp(SerializableRegionInfo sregion, ulong regionhandle)
258 {
259 RegionInfo region = new RegionInfo(sregion);
260
261 //region.RegionLocX = sregion.X;
262 //region.RegionLocY = sregion.Y;
263 //region.SetEndPoint(sregion.IPADDR, sregion.PORT);
264
265 //sregion);
266 if (m_regionListeners.ContainsKey(regionhandle))
267 {
268 return m_regionListeners[regionhandle].TriggerRegionUp(region);
269 }
270
271 return false;
272 }
273
274 public virtual bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
275 {
276 if (m_regionListeners.ContainsKey(regionHandle))
277 {
278 // Console.WriteLine("CommsManager- Informing a region to expect child agent");
279 m_regionListeners[regionHandle].TriggerChildAgentUpdate(cAgentData);
280 //m_log.Info("[INTER]: " + rdebugRegionName + ":Local BackEnd: Got Listener trigginering local event: " + agentData.firstname + " " + agentData.lastname);
281
282 return true;
283 }
284 return false;
285 }
286
287 // This function is only here to keep this class in line with the Grid Interface. 247 // This function is only here to keep this class in line with the Grid Interface.
288 // It never gets called. 248 // It never gets called.
289 public virtual Dictionary<string, string> GetGridSettings() 249 public virtual Dictionary<string, string> GetGridSettings()
@@ -303,124 +263,6 @@ namespace OpenSim.Region.Communications.Local
303 m_queuedGridSettings.Add("allow_forceful_banlines", "FALSE"); 263 m_queuedGridSettings.Add("allow_forceful_banlines", "FALSE");
304 } 264 }
305 265
306 public bool TriggerRegionUp(RegionInfo region, ulong regionhandle)
307 {
308 if (m_regionListeners.ContainsKey(regionhandle))
309 {
310 return m_regionListeners[regionhandle].TriggerRegionUp(region);
311 }
312
313 return false;
314 }
315
316 public bool TriggerChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
317 {
318 if (m_regionListeners.ContainsKey(regionHandle))
319 {
320 return m_regionListeners[regionHandle].TriggerChildAgentUpdate(cAgentData);
321 }
322
323 return false;
324 }
325
326 public bool TriggerTellRegionToCloseChildConnection(ulong regionHandle, UUID agentID)
327 {
328 if (m_regionListeners.ContainsKey(regionHandle))
329 {
330 return m_regionListeners[regionHandle].TriggerTellRegionToCloseChildConnection(agentID);
331 }
332
333 return false;
334 }
335
336 /// <summary>
337 /// Tell a region to expect a new client connection.
338 /// </summary>
339 /// <param name="regionHandle"></param>
340 /// <param name="agentData"></param>
341 /// <returns></returns>
342 public bool InformRegionOfChildAgent(ulong regionHandle, AgentCircuitData agentData)
343 // TODO: should change from agentCircuitData
344 {
345 //Console.WriteLine("CommsManager- Trying to Inform a region to expect child agent");
346 //m_log.Info("[INTER]: " + rdebugRegionName + ":Local BackEnd: Trying to inform region of child agent: " + agentData.firstname + " " + agentData.lastname);
347
348 if (m_regionListeners.ContainsKey(regionHandle))
349 {
350 // Console.WriteLine("CommsManager- Informing a region to expect child agent");
351 m_regionListeners[regionHandle].TriggerExpectUser(agentData);
352 //m_log.Info("[INTER]: " + rdebugRegionName + ":Local BackEnd: Got Listener trigginering local event: " + agentData.firstname + " " + agentData.lastname);
353
354 return true;
355 }
356 return false;
357 }
358
359 /// <summary>
360 /// Tell a region to expect the crossing in of a new prim.
361 /// </summary>
362 /// <param name="regionHandle"></param>
363 /// <param name="primID"></param>
364 /// <param name="objData"></param>
365 /// <param name="XMLMethod"></param>
366 /// <returns></returns>
367 public bool InformRegionOfPrimCrossing(ulong regionHandle, UUID primID, string objData, int XMLMethod)
368 {
369 if (m_regionListeners.ContainsKey(regionHandle))
370 {
371 m_regionListeners[regionHandle].TriggerExpectPrim(primID, objData, XMLMethod);
372 return true;
373 }
374
375 return false;
376 }
377
378 /// <summary>
379 /// Tell a region to get prepare for an avatar to cross into it.
380 /// </summary>
381 /// <param name="regionHandle"></param>
382 /// <param name="agentID"></param>
383 /// <param name="position"></param>
384 /// <returns></returns>
385 public bool ExpectAvatarCrossing(ulong regionHandle, UUID agentID, Vector3 position, bool isFlying)
386 {
387 if (m_regionListeners.ContainsKey(regionHandle))
388 {
389 // Console.WriteLine("CommsManager- Informing a region to expect avatar crossing");
390 m_regionListeners[regionHandle].TriggerExpectAvatarCrossing(agentID, position, isFlying);
391 return true;
392 }
393 return false;
394 }
395
396 public bool ExpectPrimCrossing(ulong regionHandle, UUID primID, Vector3 position, bool isPhysical)
397 {
398 if (m_regionListeners.ContainsKey(regionHandle))
399 {
400 m_regionListeners[regionHandle].TriggerExpectPrimCrossing(primID, position, isPhysical);
401 return true;
402 }
403
404 return false;
405 }
406
407 public bool AcknowledgeAgentCrossed(ulong regionHandle, UUID agentId)
408 {
409 if (m_regionListeners.ContainsKey(regionHandle))
410 {
411 return true;
412 }
413 return false;
414 }
415
416 public bool AcknowledgePrimCrossed(ulong regionHandle, UUID primID)
417 {
418 if (m_regionListeners.ContainsKey(regionHandle))
419 {
420 return true;
421 }
422 return false;
423 }
424 266
425 /// <summary> 267 /// <summary>
426 /// Is a Sandbox mode method, used by the local Login server to inform a region of a connection user/session 268 /// Is a Sandbox mode method, used by the local Login server to inform a region of a connection user/session
@@ -474,14 +316,6 @@ namespace OpenSim.Region.Communications.Local
474 } 316 }
475 } 317 }
476 318
477 public void TriggerExpectPrim(ulong regionHandle, UUID primID, string objData, int XMLMethod)
478 {
479 if (m_regionListeners.ContainsKey(regionHandle))
480 {
481 m_regionListeners[regionHandle].TriggerExpectPrim(primID, objData, XMLMethod);
482 }
483 }
484
485 public void PingCheckReply(Hashtable respData) 319 public void PingCheckReply(Hashtable respData)
486 { 320 {
487 foreach (ulong region in m_regions.Keys) 321 foreach (ulong region in m_regions.Keys)
@@ -495,40 +329,6 @@ namespace OpenSim.Region.Communications.Local
495 } 329 }
496 } 330 }
497 331
498 public bool TriggerExpectAvatarCrossing(ulong regionHandle, UUID agentID, Vector3 position, bool isFlying)
499 {
500 if (m_regionListeners.ContainsKey(regionHandle))
501 {
502 return m_regionListeners[regionHandle].TriggerExpectAvatarCrossing(agentID, position, isFlying);
503 }
504
505 return false;
506 }
507
508 public bool TriggerExpectPrimCrossing(ulong regionHandle, UUID primID, Vector3 position, bool isPhysical)
509 {
510 if (m_regionListeners.ContainsKey(regionHandle))
511 {
512 return
513 m_regionListeners[regionHandle].TriggerExpectPrimCrossing(primID, position, isPhysical);
514 }
515 return false;
516 }
517
518 public bool IncomingChildAgent(ulong regionHandle, AgentCircuitData agentData)
519 {
520 // m_log.Info("[INTER]: " + rdebugRegionName + ":Local BackEnd: Other local region is sending child agent our way: " + agentData.firstname + " " + agentData.lastname);
521
522 if (m_regionListeners.ContainsKey(regionHandle))
523 {
524 //m_log.Info("[INTER]: " + rdebugRegionName + ":Local BackEnd: found local region to trigger event on: " + agentData.firstname + " " + agentData.lastname);
525
526 TriggerExpectUser(regionHandle, agentData);
527 return true;
528 }
529
530 return false;
531 }
532 332
533 public LandData RequestLandData (ulong regionHandle, uint x, uint y) 333 public LandData RequestLandData (ulong regionHandle, uint x, uint y)
534 { 334 {
@@ -560,20 +360,5 @@ namespace OpenSim.Region.Communications.Local
560 return regions; 360 return regions;
561 } 361 }
562 362
563 public List<UUID> InformFriendsInOtherRegion(UUID agentId, ulong destRegionHandle, List<UUID> friends, bool online)
564 {
565 // if we get to here, something is wrong: We are in standalone mode, but have users that are not on our server?
566 m_log.WarnFormat("[INTERREGION STANDALONE] Did find {0} users on a region not on our server: {1} ???",
567 friends.Count, destRegionHandle);
568 return new List<UUID>();
569 }
570
571 public bool TriggerTerminateFriend (ulong regionHandle, UUID agentID, UUID exFriendID)
572 {
573 // if we get to here, something is wrong: We are in standalone mode, but have users that are not on our server?
574 m_log.WarnFormat("[INTERREGION STANDALONE] Did find user {0} on a region not on our server: {1} ???",
575 agentID, regionHandle);
576 return true;
577 }
578 } 363 }
579} 364}