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.
parent
6055db2bc3
commit
5b8620d82f
|
@ -9,7 +9,8 @@ namespace OpenSim.Grid.ScriptServer
|
|||
{
|
||||
// This object will be exposed over remoting. It is a singleton, so it exists only in as one instance.
|
||||
|
||||
// Expose ScriptEngine
|
||||
// Expose ScriptEngine directly for now ... this is not very secure :)
|
||||
// NOTE! CURRENTLY JUST HARDWIRED DOTNETENGINE!
|
||||
public OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine ScriptEngine = new OpenSim.Region.ScriptEngine.DotNetEngine.ScriptEngine();
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -33,6 +33,7 @@ using OpenSim.Framework;
|
|||
namespace OpenSim.Region.ScriptEngine.RemoteServer
|
||||
{
|
||||
/// <summary>
|
||||
/// Handles events from OpenSim. Uses RemoteServer to send commands.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
internal class EventManager
|
||||
|
|
|
@ -9,6 +9,8 @@ namespace OpenSim.Region.ScriptEngine.RemoteServer
|
|||
{
|
||||
class RemoteServer
|
||||
{
|
||||
// Handles connections to servers
|
||||
// Create and returns server object
|
||||
|
||||
public OpenSim.Grid.ScriptServer.RemotingObject Connect(string hostname, int port)
|
||||
{
|
||||
|
|
|
@ -35,7 +35,7 @@ using OpenSim.Region.Environment.Scenes;
|
|||
namespace OpenSim.Region.ScriptEngine.RemoteServer
|
||||
{
|
||||
/// <summary>
|
||||
/// This is the root object for ScriptEngine. Objects access each other trough this class.
|
||||
/// This is the root object for RemoteServer. Objects access each other trough this class.
|
||||
/// </summary>
|
||||
///
|
||||
[Serializable]
|
||||
|
@ -43,7 +43,7 @@ namespace OpenSim.Region.ScriptEngine.RemoteServer
|
|||
{
|
||||
internal Scene World;
|
||||
internal EventManager m_EventManager; // Handles and queues incoming events from OpenSim
|
||||
internal RemoteServer m_RemoteServer;
|
||||
internal RemoteServer m_RemoteServer; // Handles connections to remote servers
|
||||
|
||||
private LogBase m_log;
|
||||
|
||||
|
|
Loading…
Reference in New Issue