RegionServerBase.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. using System;
  2. using System.Text;
  3. using System.IO;
  4. using System.Threading;
  5. using System.Net;
  6. using System.Net.Sockets;
  7. using System.Timers;
  8. using System.Reflection;
  9. using System.Collections;
  10. using System.Collections.Generic;
  11. using libsecondlife;
  12. using libsecondlife.Packets;
  13. using OpenSim.Terrain;
  14. using OpenSim.Framework.Interfaces;
  15. using OpenSim.Framework.Types;
  16. using OpenSim.Framework;
  17. using OpenSim.UserServer;
  18. using OpenSim.Assets;
  19. using OpenSim.CAPS;
  20. using OpenSim.Framework.Console;
  21. using OpenSim.Physics.Manager;
  22. using Nwc.XmlRpc;
  23. using OpenSim.Servers;
  24. using OpenSim.GenericConfig;
  25. namespace OpenSim
  26. {
  27. public class RegionServerBase
  28. {
  29. protected IGenericConfig localConfig;
  30. protected PhysicsManager physManager;
  31. protected AssetCache AssetCache;
  32. protected InventoryCache InventoryCache;
  33. protected Dictionary<EndPoint, uint> clientCircuits = new Dictionary<EndPoint, uint>();
  34. protected DateTime startuptime;
  35. protected NetworkServersInfo serversData;
  36. public string m_physicsEngine;
  37. public bool m_sandbox = false;
  38. public bool m_loginserver;
  39. public bool user_accounts = false;
  40. public bool gridLocalAsset = false;
  41. protected bool configFileSetup = false;
  42. public string m_config;
  43. protected List<UDPServer> m_udpServer = new List<UDPServer>();
  44. protected List<RegionInfo> regionData = new List<RegionInfo>();
  45. protected List<IWorld> m_localWorld = new List<IWorld>();
  46. protected BaseHttpServer httpServer;
  47. protected List<AuthenticateSessionsBase> AuthenticateSessionsHandler = new List<AuthenticateSessionsBase>();
  48. protected ConsoleBase m_console;
  49. public RegionServerBase()
  50. {
  51. }
  52. public RegionServerBase(bool sandBoxMode, bool startLoginServer, string physicsEngine, bool useConfigFile, bool silent, string configFile)
  53. {
  54. this.configFileSetup = useConfigFile;
  55. m_sandbox = sandBoxMode;
  56. m_loginserver = startLoginServer;
  57. m_physicsEngine = physicsEngine;
  58. m_config = configFile;
  59. }
  60. /*protected World m_localWorld;
  61. public World LocalWorld
  62. {
  63. get { return m_localWorld; }
  64. }*/
  65. /// <summary>
  66. /// Performs initialisation of the world, such as loading configuration from disk.
  67. /// </summary>
  68. public virtual void StartUp()
  69. {
  70. }
  71. protected virtual void SetupLocalGridServers()
  72. {
  73. }
  74. protected virtual void SetupRemoteGridServers()
  75. {
  76. }
  77. protected virtual void SetupWorld()
  78. {
  79. }
  80. protected virtual void SetupHttpListener()
  81. {
  82. }
  83. protected virtual void ConnectToRemoteGridServer()
  84. {
  85. }
  86. }
  87. }