server->script event path almost ready for remote scriptengine (translation table between local script ID and remote script ID missing)

This commit is contained in:
Tedd Hansen
2007-12-30 22:37:07 +00:00
parent 76e74a7667
commit 6055db2bc3
7 changed files with 181 additions and 87 deletions

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
namespace OpenSim.Grid.ScriptServer
{
class RemotingServer
{
public void CreateServer(int port, string instanceName)
{
// Create an instance of a channel
TcpChannel channel = new TcpChannel(port);
ChannelServices.RegisterChannel(channel, true);
// Register as an available service with the name HelloWorld
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(RemotingObject),
instanceName,
WellKnownObjectMode.Singleton);
}
}
}