diff options
author | Tedd Hansen | 2008-01-12 00:48:58 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-01-12 00:48:58 +0000 |
commit | 1e9a66cbaae97759c5c4e936664b5cc7a4feca89 (patch) | |
tree | 902166cca5b637ca85d97a6d8b8d941a4ed4a138 /OpenSim/Region/ScriptEngine/RemoteServer/RemoteServer.cs | |
parent | Fix some warnings under mono. (diff) | |
download | opensim-SC_OLD-1e9a66cbaae97759c5c4e936664b5cc7a4feca89.zip opensim-SC_OLD-1e9a66cbaae97759c5c4e936664b5cc7a4feca89.tar.gz opensim-SC_OLD-1e9a66cbaae97759c5c4e936664b5cc7a4feca89.tar.bz2 opensim-SC_OLD-1e9a66cbaae97759c5c4e936664b5cc7a4feca89.tar.xz |
ScriptServer communication protocol (v1), primitive RPC-like TCP client/server
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 | ||