aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs6
-rw-r--r--OpenSim/Grid/AssetServer/Main.cs17
-rw-r--r--OpenSim/Grid/GridServer/GridServerBase.cs61
-rw-r--r--OpenSim/Grid/InventoryServer/Main.cs28
-rw-r--r--OpenSim/Grid/MessagingServer/Main.cs13
-rw-r--r--OpenSim/Grid/UserServer/Main.cs69
6 files changed, 92 insertions, 102 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index 996e4f8..c243042 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -37,6 +37,12 @@ namespace OpenSim.Framework.Servers
37 { 37 {
38 protected ConsoleBase m_console; 38 protected ConsoleBase m_console;
39 protected DateTime m_startuptime; 39 protected DateTime m_startuptime;
40
41 protected BaseHttpServer m_httpServer;
42 public BaseHttpServer HttpServer
43 {
44 get { return m_httpServer; }
45 }
40 46
41 public BaseOpenSimServer() 47 public BaseOpenSimServer()
42 { 48 {
diff --git a/OpenSim/Grid/AssetServer/Main.cs b/OpenSim/Grid/AssetServer/Main.cs
index d2c247a..c863c76 100644
--- a/OpenSim/Grid/AssetServer/Main.cs
+++ b/OpenSim/Grid/AssetServer/Main.cs
@@ -51,7 +51,7 @@ namespace OpenSim.Grid.AssetServer
51 // Temporarily hardcoded - should be a plugin 51 // Temporarily hardcoded - should be a plugin
52 protected IAssetLoader assetLoader = new AssetLoaderFileSystem(); 52 protected IAssetLoader assetLoader = new AssetLoaderFileSystem();
53 53
54 private IAssetProvider m_assetProvider; 54 private IAssetProvider m_assetProvider;
55 55
56 [STAThread] 56 [STAThread]
57 public static void Main(string[] args) 57 public static void Main(string[] args)
@@ -94,14 +94,19 @@ namespace OpenSim.Grid.AssetServer
94 LoadDefaultAssets(); 94 LoadDefaultAssets();
95 95
96 m_log.Info("[ASSET]: Starting HTTP process"); 96 m_log.Info("[ASSET]: Starting HTTP process");
97 BaseHttpServer httpServer = new BaseHttpServer(m_config.HttpPort); 97 m_httpServer = new BaseHttpServer(m_config.HttpPort);
98 98
99 StatsManager.StartCollectingAssetStats(); 99 StatsManager.StartCollectingAssetStats();
100 100
101 httpServer.AddStreamHandler(new GetAssetStreamHandler(this, m_assetProvider)); 101 AddHttpHandlers();
102 httpServer.AddStreamHandler(new PostAssetStreamHandler(this, m_assetProvider));
103 102
104 httpServer.Start(); 103 m_httpServer.Start();
104 }
105
106 protected void AddHttpHandlers()
107 {
108 m_httpServer.AddStreamHandler(new GetAssetStreamHandler(this, m_assetProvider));
109 m_httpServer.AddStreamHandler(new PostAssetStreamHandler(this, m_assetProvider));
105 } 110 }
106 111
107 public byte[] GetAssetData(LLUUID assetID, bool isTexture) 112 public byte[] GetAssetData(LLUUID assetID, bool isTexture)
diff --git a/OpenSim/Grid/GridServer/GridServerBase.cs b/OpenSim/Grid/GridServer/GridServerBase.cs
index 884ba4f..3be98d8 100644
--- a/OpenSim/Grid/GridServer/GridServerBase.cs
+++ b/OpenSim/Grid/GridServer/GridServerBase.cs
@@ -45,14 +45,8 @@ namespace OpenSim.Grid.GridServer
45 { 45 {
46 protected GridConfig m_config; 46 protected GridConfig m_config;
47 protected GridManager m_gridManager; 47 protected GridManager m_gridManager;
48 protected BaseHttpServer httpServer;
49 protected List<IGridPlugin> m_plugins = new List<IGridPlugin>(); 48 protected List<IGridPlugin> m_plugins = new List<IGridPlugin>();
50 49
51 public BaseHttpServer HttpServer
52 {
53 get { return httpServer; }
54 }
55
56 public void Work() 50 public void Work()
57 { 51 {
58 m_console.Notice("Enter help for a list of commands\n"); 52 m_console.Notice("Enter help for a list of commands\n");
@@ -88,38 +82,37 @@ namespace OpenSim.Grid.GridServer
88 SetupGridManager(); 82 SetupGridManager();
89 83
90 m_console.Status("[GRID]: Starting HTTP process"); 84 m_console.Status("[GRID]: Starting HTTP process");
91 httpServer = new BaseHttpServer(m_config.HttpPort); 85 m_httpServer = new BaseHttpServer(m_config.HttpPort);
92 //GridManagementAgent GridManagerAgent = new GridManagementAgent(httpServer, "gridserver", m_config.SimSendKey, m_config.SimRecvKey, managercallback);
93 86
94 httpServer.AddXmlRPCHandler("simulator_login", m_gridManager.XmlRpcSimulatorLoginMethod); 87 AddHttpHandlers();
95 httpServer.AddXmlRPCHandler("simulator_data_request", m_gridManager.XmlRpcSimulatorDataRequestMethod);
96 httpServer.AddXmlRPCHandler("simulator_after_region_moved", m_gridManager.XmlRpcDeleteRegionMethod);
97 httpServer.AddXmlRPCHandler("map_block", m_gridManager.XmlRpcMapBlockMethod);
98 88
99 // Message Server ---> Grid Server 89 LoadGridPlugins( );
100 httpServer.AddXmlRPCHandler("register_messageserver", m_gridManager.XmlRPCRegisterMessageServer);
101 httpServer.AddXmlRPCHandler("deregister_messageserver", m_gridManager.XmlRPCDeRegisterMessageServer);
102 90
103 httpServer.AddStreamHandler(new RestStreamHandler("GET", "/sims/", m_gridManager.RestGetSimMethod)); 91 m_httpServer.Start();
104 httpServer.AddStreamHandler(new RestStreamHandler("POST", "/sims/", m_gridManager.RestSetSimMethod));
105 92
106 httpServer.AddStreamHandler(new RestStreamHandler("GET", "/regions/", m_gridManager.RestGetRegionMethod)); 93 m_console.Status("[GRID]: Starting sim status checker");
107 httpServer.AddStreamHandler(new RestStreamHandler("POST", "/regions/", m_gridManager.RestSetRegionMethod));
108 94
109 //httpServer.AddRestHandler("GET", "/sims/", m_gridManager.RestGetSimMethod); 95 Timer simCheckTimer = new Timer(3600000 * 3); // 3 Hours between updates.
110 //httpServer.AddRestHandler("POST", "/sims/", m_gridManager.RestSetSimMethod); 96 simCheckTimer.Elapsed += new ElapsedEventHandler(CheckSims);
111 //httpServer.AddRestHandler("GET", "/regions/", m_gridManager.RestGetRegionMethod); 97 simCheckTimer.Enabled = true;
112 //httpServer.AddRestHandler("POST", "/regions/", m_gridManager.RestSetRegionMethod); 98 }
113 99
114 LoadGridPlugins(); 100 protected void AddHttpHandlers()
101 {
102 m_httpServer.AddXmlRPCHandler("simulator_login", m_gridManager.XmlRpcSimulatorLoginMethod);
103 m_httpServer.AddXmlRPCHandler("simulator_data_request", m_gridManager.XmlRpcSimulatorDataRequestMethod);
104 m_httpServer.AddXmlRPCHandler("simulator_after_region_moved", m_gridManager.XmlRpcDeleteRegionMethod);
105 m_httpServer.AddXmlRPCHandler("map_block", m_gridManager.XmlRpcMapBlockMethod);
115 106
116 httpServer.Start(); 107 // Message Server ---> Grid Server
108 m_httpServer.AddXmlRPCHandler("register_messageserver", m_gridManager.XmlRPCRegisterMessageServer);
109 m_httpServer.AddXmlRPCHandler("deregister_messageserver", m_gridManager.XmlRPCDeRegisterMessageServer);
117 110
118 m_console.Status("[GRID]: Starting sim status checker"); 111 m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/sims/", m_gridManager.RestGetSimMethod));
112 m_httpServer.AddStreamHandler(new RestStreamHandler("POST", "/sims/", m_gridManager.RestSetSimMethod));
119 113
120 Timer simCheckTimer = new Timer(3600000*3); // 3 Hours between updates. 114 m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/regions/", m_gridManager.RestGetRegionMethod));
121 simCheckTimer.Elapsed += new ElapsedEventHandler(CheckSims); 115 m_httpServer.AddStreamHandler(new RestStreamHandler("POST", "/regions/", m_gridManager.RestSetRegionMethod));
122 simCheckTimer.Enabled = true;
123 } 116 }
124 117
125 protected void LoadGridPlugins() 118 protected void LoadGridPlugins()
@@ -131,8 +124,8 @@ namespace OpenSim.Grid.GridServer
131 ExtensionNodeList nodes = AddinManager.GetExtensionNodes("/OpenSim/GridServer"); 124 ExtensionNodeList nodes = AddinManager.GetExtensionNodes("/OpenSim/GridServer");
132 foreach (TypeExtensionNode node in nodes) 125 foreach (TypeExtensionNode node in nodes)
133 { 126 {
134 m_console.Status("[GRIDPLUGINS]: Loading OpenSim plugin "+node.Path); 127 m_console.Status("[GRIDPLUGINS]: Loading OpenSim plugin " + node.Path);
135 IGridPlugin plugin = (IGridPlugin) node.CreateInstance(); 128 IGridPlugin plugin = (IGridPlugin)node.CreateInstance();
136 plugin.Initialise(this); 129 plugin.Initialise(this);
137 m_plugins.Add(plugin); 130 m_plugins.Add(plugin);
138 } 131 }
@@ -191,15 +184,15 @@ namespace OpenSim.Grid.GridServer
191 public override void RunCmd(string cmd, string[] cmdparams) 184 public override void RunCmd(string cmd, string[] cmdparams)
192 { 185 {
193 base.RunCmd(cmd, cmdparams); 186 base.RunCmd(cmd, cmdparams);
194 187
195 switch (cmd) 188 switch (cmd)
196 { 189 {
197 case "help": 190 case "help":
198 m_console.Notice("shutdown - shutdown the grid (USE CAUTION!)"); 191 m_console.Notice("shutdown - shutdown the grid (USE CAUTION!)");
199 break; 192 break;
200 193
201 case "shutdown": 194 case "shutdown":
202 foreach(IGridPlugin plugin in m_plugins) plugin.Close(); 195 foreach (IGridPlugin plugin in m_plugins) plugin.Close();
203 m_console.Close(); 196 m_console.Close();
204 Environment.Exit(0); 197 Environment.Exit(0);
205 break; 198 break;
diff --git a/OpenSim/Grid/InventoryServer/Main.cs b/OpenSim/Grid/InventoryServer/Main.cs
index 9aa9adc..ea056a0 100644
--- a/OpenSim/Grid/InventoryServer/Main.cs
+++ b/OpenSim/Grid/InventoryServer/Main.cs
@@ -72,36 +72,42 @@ namespace OpenSim.Grid.InventoryServer
72 m_inventoryService.AddPlugin(m_config.DatabaseProvider); 72 m_inventoryService.AddPlugin(m_config.DatabaseProvider);
73 73
74 m_log.Info("[" + LogName + "]: Starting HTTP server ..."); 74 m_log.Info("[" + LogName + "]: Starting HTTP server ...");
75 BaseHttpServer httpServer = new BaseHttpServer(m_config.HttpPort); 75
76 httpServer.AddStreamHandler( 76 m_httpServer = new BaseHttpServer(m_config.HttpPort);
77 AddHttpHandlers();
78 m_httpServer.Start();
79
80 m_log.Info("[" + LogName + "]: Started HTTP server");
81 }
82
83 protected void AddHttpHandlers()
84 {
85 m_httpServer.AddStreamHandler(
77 new RestDeserialisehandler<Guid, InventoryCollection>("POST", "/GetInventory/", 86 new RestDeserialisehandler<Guid, InventoryCollection>("POST", "/GetInventory/",
78 m_inventoryService.GetUserInventory)); 87 m_inventoryService.GetUserInventory));
79 httpServer.AddStreamHandler( 88 m_httpServer.AddStreamHandler(
80 new RestDeserialisehandler<Guid, bool>("POST", "/CreateInventory/", 89 new RestDeserialisehandler<Guid, bool>("POST", "/CreateInventory/",
81 m_inventoryService.CreateUsersInventory)); 90 m_inventoryService.CreateUsersInventory));
82 httpServer.AddStreamHandler( 91 m_httpServer.AddStreamHandler(
83 new RestDeserialisehandler<InventoryFolderBase, bool>("POST", "/NewFolder/", 92 new RestDeserialisehandler<InventoryFolderBase, bool>("POST", "/NewFolder/",
84 m_inventoryService.AddInventoryFolder)); 93 m_inventoryService.AddInventoryFolder));
85 94
86 httpServer.AddStreamHandler( 95 m_httpServer.AddStreamHandler(
87 new RestDeserialisehandler<InventoryFolderBase, bool>("POST", "/MoveFolder/", 96 new RestDeserialisehandler<InventoryFolderBase, bool>("POST", "/MoveFolder/",
88 m_inventoryService.MoveInventoryFolder)); 97 m_inventoryService.MoveInventoryFolder));
89 98
90 httpServer.AddStreamHandler( 99 m_httpServer.AddStreamHandler(
91 new RestDeserialisehandler<InventoryItemBase, bool>("POST", "/NewItem/", 100 new RestDeserialisehandler<InventoryItemBase, bool>("POST", "/NewItem/",
92 m_inventoryService.AddInventoryItem)); 101 m_inventoryService.AddInventoryItem));
93 httpServer.AddStreamHandler( 102 m_httpServer.AddStreamHandler(
94 new RestDeserialisehandler<InventoryItemBase, bool>("POST", "/DeleteItem/", 103 new RestDeserialisehandler<InventoryItemBase, bool>("POST", "/DeleteItem/",
95 m_inventoryService.DeleteInvItem)); 104 m_inventoryService.DeleteInvItem));
96 105
97 httpServer.AddStreamHandler( 106 m_httpServer.AddStreamHandler(
98 new RestDeserialisehandler<Guid, List<InventoryFolderBase>>("POST", "/RootFolders/", 107 new RestDeserialisehandler<Guid, List<InventoryFolderBase>>("POST", "/RootFolders/",
99 m_inventoryService.RequestFirstLevelFolders)); 108 m_inventoryService.RequestFirstLevelFolders));
100 109
101 // httpServer.AddStreamHandler(new InventoryManager.GetInventory(m_inventoryManager)); 110 // httpServer.AddStreamHandler(new InventoryManager.GetInventory(m_inventoryManager));
102
103 httpServer.Start();
104 m_log.Info("[" + LogName + "]: Started HTTP server");
105 } 111 }
106 112
107 private void Work() 113 private void Work()
diff --git a/OpenSim/Grid/MessagingServer/Main.cs b/OpenSim/Grid/MessagingServer/Main.cs
index 063da55..b288b33 100644
--- a/OpenSim/Grid/MessagingServer/Main.cs
+++ b/OpenSim/Grid/MessagingServer/Main.cs
@@ -44,9 +44,6 @@ namespace OpenSim.Grid.MessagingServer
44 44
45 private MessageServerConfig Cfg; 45 private MessageServerConfig Cfg;
46 private MessageService msgsvc; 46 private MessageService msgsvc;
47
48 //public UserManager m_userManager;
49 //public UserLoginService m_loginService;
50 47
51 private LLUUID m_lastCreatedUser = LLUUID.Random(); 48 private LLUUID m_lastCreatedUser = LLUUID.Random();
52 49
@@ -86,14 +83,14 @@ namespace OpenSim.Grid.MessagingServer
86 Cfg = new MessageServerConfig("MESSAGING SERVER", (Path.Combine(Util.configDir(), "MessagingServer_Config.xml"))); 83 Cfg = new MessageServerConfig("MESSAGING SERVER", (Path.Combine(Util.configDir(), "MessagingServer_Config.xml")));
87 84
88 m_log.Info("[REGION]: Starting HTTP process"); 85 m_log.Info("[REGION]: Starting HTTP process");
89 BaseHttpServer httpServer = new BaseHttpServer(Cfg.HttpPort); 86 m_httpServer = new BaseHttpServer(Cfg.HttpPort);
90 87
91 msgsvc = new MessageService(Cfg); 88 msgsvc = new MessageService(Cfg);
92 89
93 if (msgsvc.registerWithUserServer()) 90 if (msgsvc.registerWithUserServer())
94 { 91 {
95 httpServer.AddXmlRPCHandler("login_to_simulator", msgsvc.UserLoggedOn); 92 m_httpServer.AddXmlRPCHandler("login_to_simulator", msgsvc.UserLoggedOn);
96 httpServer.AddXmlRPCHandler("logout_of_simulator", msgsvc.UserLoggedOff); 93 m_httpServer.AddXmlRPCHandler("logout_of_simulator", msgsvc.UserLoggedOff);
97 //httpServer.AddXmlRPCHandler("get_user_by_name", m_userManager.XmlRPCGetUserMethodName); 94 //httpServer.AddXmlRPCHandler("get_user_by_name", m_userManager.XmlRPCGetUserMethodName);
98 //httpServer.AddXmlRPCHandler("get_user_by_uuid", m_userManager.XmlRPCGetUserMethodUUID); 95 //httpServer.AddXmlRPCHandler("get_user_by_uuid", m_userManager.XmlRPCGetUserMethodUUID);
99 //httpServer.AddXmlRPCHandler("get_avatar_picker_avatar", m_userManager.XmlRPCGetAvatarPickerAvatar); 96 //httpServer.AddXmlRPCHandler("get_avatar_picker_avatar", m_userManager.XmlRPCGetAvatarPickerAvatar);
@@ -106,7 +103,7 @@ namespace OpenSim.Grid.MessagingServer
106 //httpServer.AddStreamHandler( 103 //httpServer.AddStreamHandler(
107 //new RestStreamHandler("DELETE", "/usersessions/", m_userManager.RestDeleteUserSessionMethod)); 104 //new RestStreamHandler("DELETE", "/usersessions/", m_userManager.RestDeleteUserSessionMethod));
108 105
109 httpServer.Start(); 106 m_httpServer.Start();
110 m_log.Info("[SERVER]: Messageserver 0.5 - Startup complete"); 107 m_log.Info("[SERVER]: Messageserver 0.5 - Startup complete");
111 } 108 }
112 else 109 else
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index c103e22..19f037f 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -100,35 +100,41 @@ namespace OpenSim.Grid.UserServer
100 m_userManager.OnLogOffUser += NotifyMessageServersUserLoggOff; 100 m_userManager.OnLogOffUser += NotifyMessageServersUserLoggOff;
101 101
102 m_log.Info("[REGION]: Starting HTTP process"); 102 m_log.Info("[REGION]: Starting HTTP process");
103 BaseHttpServer httpServer = new BaseHttpServer(Cfg.HttpPort); 103
104 m_httpServer = new BaseHttpServer(Cfg.HttpPort);
105 AddHttpHandlers();
106 m_httpServer.Start();
104 107
105 httpServer.AddXmlRPCHandler("login_to_simulator", m_loginService.XmlRpcLoginMethod); 108 m_log.Info("[SERVER]: Userserver 0.5 - Startup complete");
109 }
106 110
107 httpServer.AddHTTPHandler("login", m_loginService.ProcessHTMLLogin); 111 protected void AddHttpHandlers()
112 {
113 m_httpServer.AddXmlRPCHandler("login_to_simulator", m_loginService.XmlRpcLoginMethod);
114
115 m_httpServer.AddHTTPHandler("login", m_loginService.ProcessHTMLLogin);
108 116
109 httpServer.SetLLSDHandler(m_loginService.LLSDLoginMethod); 117 m_httpServer.SetLLSDHandler(m_loginService.LLSDLoginMethod);
110 118
111 httpServer.AddXmlRPCHandler("get_user_by_name", m_userManager.XmlRPCGetUserMethodName); 119 m_httpServer.AddXmlRPCHandler("get_user_by_name", m_userManager.XmlRPCGetUserMethodName);
112 httpServer.AddXmlRPCHandler("get_user_by_uuid", m_userManager.XmlRPCGetUserMethodUUID); 120 m_httpServer.AddXmlRPCHandler("get_user_by_uuid", m_userManager.XmlRPCGetUserMethodUUID);
113 httpServer.AddXmlRPCHandler("get_avatar_picker_avatar", m_userManager.XmlRPCGetAvatarPickerAvatar); 121 m_httpServer.AddXmlRPCHandler("get_avatar_picker_avatar", m_userManager.XmlRPCGetAvatarPickerAvatar);
114 httpServer.AddXmlRPCHandler("add_new_user_friend", m_userManager.XmlRpcResponseXmlRPCAddUserFriend); 122 m_httpServer.AddXmlRPCHandler("add_new_user_friend", m_userManager.XmlRpcResponseXmlRPCAddUserFriend);
115 httpServer.AddXmlRPCHandler("remove_user_friend", m_userManager.XmlRpcResponseXmlRPCRemoveUserFriend); 123 m_httpServer.AddXmlRPCHandler("remove_user_friend", m_userManager.XmlRpcResponseXmlRPCRemoveUserFriend);
116 httpServer.AddXmlRPCHandler("update_user_friend_perms", m_userManager.XmlRpcResponseXmlRPCUpdateUserFriendPerms); 124 m_httpServer.AddXmlRPCHandler("update_user_friend_perms", m_userManager.XmlRpcResponseXmlRPCUpdateUserFriendPerms);
117 httpServer.AddXmlRPCHandler("get_user_friend_list", m_userManager.XmlRpcResponseXmlRPCGetUserFriendList); 125 m_httpServer.AddXmlRPCHandler("get_user_friend_list", m_userManager.XmlRpcResponseXmlRPCGetUserFriendList);
118 httpServer.AddXmlRPCHandler("logout_of_simulator", m_userManager.XmlRPCLogOffUserMethodUUID); 126 m_httpServer.AddXmlRPCHandler("logout_of_simulator", m_userManager.XmlRPCLogOffUserMethodUUID);
119 127
120 // Message Server ---> User Server 128 // Message Server ---> User Server
121 httpServer.AddXmlRPCHandler("register_messageserver", m_messagesService.XmlRPCRegisterMessageServer); 129 m_httpServer.AddXmlRPCHandler("register_messageserver", m_messagesService.XmlRPCRegisterMessageServer);
122 httpServer.AddXmlRPCHandler("agent_change_region", m_messagesService.XmlRPCUserMovedtoRegion); 130 m_httpServer.AddXmlRPCHandler("agent_change_region", m_messagesService.XmlRPCUserMovedtoRegion);
123 httpServer.AddXmlRPCHandler("deregister_messageserver", m_messagesService.XmlRPCDeRegisterMessageServer); 131 m_httpServer.AddXmlRPCHandler("deregister_messageserver", m_messagesService.XmlRPCDeRegisterMessageServer);
124 132
125 133
126 httpServer.AddStreamHandler( 134 m_httpServer.AddStreamHandler(
127 new RestStreamHandler("DELETE", "/usersessions/", m_userManager.RestDeleteUserSessionMethod)); 135 new RestStreamHandler("DELETE", "/usersessions/", m_userManager.RestDeleteUserSessionMethod));
128 136
129 httpServer.AddXmlRPCHandler("update_user_profile", m_userManager.XmlRpcResponseXmlRPCUpdateUserProfile); 137 m_httpServer.AddXmlRPCHandler("update_user_profile", m_userManager.XmlRpcResponseXmlRPCUpdateUserProfile);
130 httpServer.Start();
131 m_log.Info("[SERVER]: Userserver 0.5 - Startup complete");
132 } 138 }
133 139
134 public void do_create(string what) 140 public void do_create(string what)
@@ -239,28 +245,5 @@ namespace OpenSim.Grid.UserServer
239 m_messagesService.TellMessageServersAboutUser( agentID, sessionID, RegionID, regionhandle, positionX, 245 m_messagesService.TellMessageServersAboutUser( agentID, sessionID, RegionID, regionhandle, positionX,
240 positionY, positionZ, firstname, lastname); 246 positionY, positionZ, firstname, lastname);
241 } 247 }
242
243 /*private void ConfigDB(IGenericConfig configData)
244 {
245 try
246 {
247 string attri = String.Empty;
248 attri = configData.GetAttribute("DataBaseProvider");
249 if (attri == String.Empty)
250 {
251 StorageDll = "OpenSim.Framework.Data.DB4o.dll";
252 configData.SetAttribute("DataBaseProvider", "OpenSim.Framework.Data.DB4o.dll");
253 }
254 else
255 {
256 StorageDll = attri;
257 }
258 configData.Commit();
259 }
260 catch
261 {
262
263 }
264 }*/
265 } 248 }
266} 249}