aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/ScriptServer/RemotingServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/ScriptServer/RemotingServer.cs')
-rw-r--r--OpenSim/Grid/ScriptServer/RemotingServer.cs56
1 files changed, 28 insertions, 28 deletions
diff --git a/OpenSim/Grid/ScriptServer/RemotingServer.cs b/OpenSim/Grid/ScriptServer/RemotingServer.cs
index 3ec3e64..33d8dc8 100644
--- a/OpenSim/Grid/ScriptServer/RemotingServer.cs
+++ b/OpenSim/Grid/ScriptServer/RemotingServer.cs
@@ -1,28 +1,28 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using System.Runtime.Remoting; 4using System.Runtime.Remoting;
5using System.Runtime.Remoting.Channels; 5using System.Runtime.Remoting.Channels;
6using System.Runtime.Remoting.Channels.Tcp; 6using System.Runtime.Remoting.Channels.Tcp;
7 7
8 8
9namespace OpenSim.Grid.ScriptServer 9namespace OpenSim.Grid.ScriptServer
10{ 10{
11 class RemotingServer 11 class RemotingServer
12 { 12 {
13 13
14 public void CreateServer(int port, string instanceName) 14 public void CreateServer(int port, string instanceName)
15 { 15 {
16 // Create an instance of a channel 16 // Create an instance of a channel
17 TcpChannel channel = new TcpChannel(port); 17 TcpChannel channel = new TcpChannel(port);
18 ChannelServices.RegisterChannel(channel, true); 18 ChannelServices.RegisterChannel(channel, true);
19 19
20 // Register as an available service with the name HelloWorld 20 // Register as an available service with the name HelloWorld
21 RemotingConfiguration.RegisterWellKnownServiceType( 21 RemotingConfiguration.RegisterWellKnownServiceType(
22 typeof(RemotingObject), 22 typeof(RemotingObject),
23 instanceName, 23 instanceName,
24 WellKnownObjectMode.Singleton); 24 WellKnownObjectMode.Singleton);
25 25
26 } 26 }
27 } 27 }
28} 28}