Comments + fix = in theory stand alone script server + "RemoteSevrver" ScriptEngine (as opposed to "DotNetEngine") should work for a single region. It will however not work because it doesn't have two-way communication.

This commit is contained in:
Tedd Hansen
2007-12-30 22:57:27 +00:00
parent 6055db2bc3
commit 5b8620d82f
5 changed files with 19 additions and 6 deletions

View File

@@ -34,17 +34,26 @@ namespace OpenSim.Grid.ScriptServer
{
public class ScriptServerMain : conscmd_callback
{
//
// Root object. Creates objects used.
//
private int listenPort = 1234;
private readonly string m_logFilename = ("region-console.log");
internal RegionCommManager RegionScriptDaemon; // Listen for incoming from region
internal ScriptEngineManager ScriptEngines; // Loads scriptengines
private LogBase m_log;
// Objects we use
internal RegionCommManager RegionScriptDaemon; // Listen for incoming from region
//internal ScriptEngineManager ScriptEngines; // Loads scriptengines
internal RemotingServer m_RemotingServer;
public ScriptServerMain()
{
m_log = CreateLog();
RegionScriptDaemon = new RegionCommManager(this, m_log);
ScriptEngines = new ScriptEngineManager(this, m_log);
//ScriptEngines = new ScriptEngineManager(this, m_log);
m_RemotingServer = new RemotingServer();
m_RemotingServer.CreateServer(listenPort, "DotNetEngine");
}
~ScriptServerMain()