diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs b/OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs index 6fc6c5c..38eb9b9 100644 --- a/OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs +++ b/OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs | |||
@@ -13,19 +13,17 @@ namespace OpenSim.Region.ScriptEngine.RemoteServer | |||
13 | // Handles connections to servers | 13 | // Handles connections to servers |
14 | // Create and returns server object | 14 | // Create and returns server object |
15 | 15 | ||
16 | public RemoteServer() | ||
17 | { | ||
18 | TcpChannel chan = new TcpChannel(); | ||
19 | ChannelServices.RegisterChannel(chan, true); | ||
20 | } | ||
21 | |||
16 | public ScriptServerInterfaces.ServerRemotingObject Connect(string hostname, int port) | 22 | public ScriptServerInterfaces.ServerRemotingObject Connect(string hostname, int port) |
17 | { | 23 | { |
18 | // Create a channel for communicating w/ the remote object | 24 | // Create a channel for communicating w/ the remote object |
19 | // Notice no port is specified on the client | 25 | // Notice no port is specified on the client |
20 | TcpChannel chan = new TcpChannel(); | 26 | |
21 | try | ||
22 | { | ||
23 | ChannelServices.RegisterChannel(chan, true); | ||
24 | } | ||
25 | catch (System.Runtime.Remoting.RemotingException) | ||
26 | { | ||
27 | System.Console.WriteLine("Error: tcp already registered, RemoteServer.cs in OpenSim.Region.ScriptEngine.RemoteServer line 24"); | ||
28 | } | ||
29 | try | 27 | try |
30 | { | 28 | { |
31 | 29 | ||