Exemplo n.º 1
0
 public void RegionLoaded(IScene scene)
 {
     if (IsEnabled() && !m_httpServerStarted)
     {
         m_httpServerStarted = true;
         // Start http server
         // Attach xmlrpc handlers
         MainConsole.Instance.Info("[XMLRPC MODULE]: " +
                                   "Starting up XMLRPC Server on port " + m_remoteDataPort +
                                   " for llRemoteData commands.");
         IHttpServer httpServer = new BaseHttpServer((uint) m_remoteDataPort, MainServer.Instance.HostName,
                                                     false, 1);
         httpServer.AddXmlRPCHandler("llRemoteData", XmlRpcRemoteData);
         httpServer.Start();
     }
     m_scriptModule = scene.RequestModuleInterface<IScriptModule>();
 }
Exemplo n.º 2
0
 public void FinishedStartup()
 {
     if (IsEnabled () && ! ServerStarted())
     {
         m_httpServerStarted = true;
         // Start http server
         // Attach xmlrpc handlers
         MainConsole.Instance.Info ("[XMLRPC MODULE]: " +
             "Starting up XMLRPC Server on port " + m_remoteDataPort +
             " for llRemoteData commands.");
         IHttpServer httpServer = new BaseHttpServer ((uint)m_remoteDataPort, MainServer.Instance.HostName,
             false, 1);
         httpServer.AddXmlRPCHandler ("llRemoteData", XmlRpcRemoteData);
         httpServer.Start ();
     }
 }