From 169032b4a42736b3feef682fcbfd1cc1f8b159ba Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Sat, 16 Feb 2008 07:53:02 +0000 Subject: Fixed ScriptEngine config in OpenSim.ini.example that was out of place. Added some info to failure on GridServices listening port so people can see what actually went wrong. Moved most of the function/event execution module to a baseclass so other execution methods (instead of reflection) can be used with custom script modules run by ScriptEngine.Common. + some accumulated patches --- OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Communications/OGS1') diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 0150e36..5d38b83 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -499,8 +499,17 @@ namespace OpenSim.Region.Communications.OGS1 /// private void StartRemoting() { - TcpChannel ch = new TcpChannel((int) NetworkServersInfo.RemotingListenerPort); - ChannelServices.RegisterChannel(ch, false); // Disabled security as Mono doesnt support this. + TcpChannel ch; + try + { + ch = new TcpChannel((int)NetworkServersInfo.RemotingListenerPort); + ChannelServices.RegisterChannel(ch, false); // Disabled security as Mono doesnt support this. + } + catch (Exception ex) + { + m_log.Error("Exception while attempting to listen on TCP port " + (int)NetworkServersInfo.RemotingListenerPort + "."); + throw (ex); + } WellKnownServiceTypeEntry wellType = new WellKnownServiceTypeEntry(typeof (OGS1InterRegionRemoting), "InterRegions", -- cgit v1.1