From 2a91f21d082aee4dc97b5b0d29e1739cfe409024 Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 24 Feb 2009 13:33:57 +0000 Subject: More refactoring of the UserServer. --- OpenSim/Grid/UserServer/MessageServersConnector.cs | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'OpenSim/Grid/UserServer/MessageServersConnector.cs') diff --git a/OpenSim/Grid/UserServer/MessageServersConnector.cs b/OpenSim/Grid/UserServer/MessageServersConnector.cs index 8d16109..1d0649c 100644 --- a/OpenSim/Grid/UserServer/MessageServersConnector.cs +++ b/OpenSim/Grid/UserServer/MessageServersConnector.cs @@ -71,6 +71,8 @@ namespace OpenSim.Grid.UserServer public Dictionary MessageServers; + private BaseHttpServer m_httpServer; + private BlockingQueue m_NotifyQueue = new BlockingQueue(); @@ -88,6 +90,30 @@ namespace OpenSim.Grid.UserServer m_NotifyThread.Start(); } + public void Initialise() + { + + } + + public void PostInitialise() + { + + } + + public void RegisterHandlers(BaseHttpServer httpServer) + { + m_httpServer = httpServer; + + m_httpServer.AddXmlRPCHandler("region_startup", RegionStartup); + m_httpServer.AddXmlRPCHandler("region_shutdown", RegionShutdown); + m_httpServer.AddXmlRPCHandler("agent_location", AgentLocation); + m_httpServer.AddXmlRPCHandler("agent_leaving", AgentLeaving); + // Message Server ---> User Server + m_httpServer.AddXmlRPCHandler("register_messageserver", XmlRPCRegisterMessageServer); + m_httpServer.AddXmlRPCHandler("agent_change_region", XmlRPCUserMovedtoRegion); + m_httpServer.AddXmlRPCHandler("deregister_messageserver", XmlRPCDeRegisterMessageServer); + } + public void RegisterMessageServer(string URI, MessageServerInfo serverData) { lock (MessageServers) -- cgit v1.1