diff options
Diffstat (limited to 'OpenSim/Grid/ScriptServer/RemotingServer.cs')
-rw-r--r-- | OpenSim/Grid/ScriptServer/RemotingServer.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Grid/ScriptServer/RemotingServer.cs b/OpenSim/Grid/ScriptServer/RemotingServer.cs index 33d8dc8..eb29740 100644 --- a/OpenSim/Grid/ScriptServer/RemotingServer.cs +++ b/OpenSim/Grid/ScriptServer/RemotingServer.cs | |||
@@ -4,17 +4,18 @@ using System.Text; | |||
4 | using System.Runtime.Remoting; | 4 | using System.Runtime.Remoting; |
5 | using System.Runtime.Remoting.Channels; | 5 | using System.Runtime.Remoting.Channels; |
6 | using System.Runtime.Remoting.Channels.Tcp; | 6 | using System.Runtime.Remoting.Channels.Tcp; |
7 | using OpenSim.Region.ScriptEngine.Common; | ||
7 | 8 | ||
8 | 9 | ||
9 | namespace OpenSim.Grid.ScriptServer | 10 | namespace OpenSim.Grid.ScriptServer |
10 | { | 11 | { |
11 | class RemotingServer | 12 | class RemotingServer |
12 | { | 13 | { |
13 | 14 | TcpChannel channel; | |
14 | public void CreateServer(int port, string instanceName) | 15 | public RemotingServer(int port, string instanceName) |
15 | { | 16 | { |
16 | // Create an instance of a channel | 17 | // Create an instance of a channel |
17 | TcpChannel channel = new TcpChannel(port); | 18 | channel = new TcpChannel(port); |
18 | ChannelServices.RegisterChannel(channel, true); | 19 | ChannelServices.RegisterChannel(channel, true); |
19 | 20 | ||
20 | // Register as an available service with the name HelloWorld | 21 | // Register as an available service with the name HelloWorld |