From 4bde56457f574060c1aaaca8effba1f6fe00b6c7 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Thu, 6 Dec 2007 01:41:41 +0000 Subject: removed some duplicate hard-coded port numbers. changed ports to uint. --- OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Communications/OGS1') diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index b11a91f..353dc28 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -166,7 +166,7 @@ namespace OpenSim.Region.Communications.OGS1 { string simIp = (string) neighbourData["sim_ip"]; - int port = Convert.ToInt32(neighbourData["sim_port"]); + uint port = Convert.ToUInt32(neighbourData["sim_port"]); string externalUri = (string) neighbourData["sim_uri"]; string externalIpStr = Util.GetHostFromDNS(simIp).ToString(); @@ -450,7 +450,7 @@ namespace OpenSim.Region.Communications.OGS1 /// private void StartRemoting() { - TcpChannel ch = new TcpChannel(NetworkServersInfo.RemotingListenerPort); + TcpChannel ch = new TcpChannel((int) NetworkServersInfo.RemotingListenerPort); ChannelServices.RegisterChannel(ch, false); // Disabled security as Mono doesnt support this. WellKnownServiceTypeEntry wellType = @@ -559,7 +559,7 @@ namespace OpenSim.Region.Communications.OGS1 // it's own remoting port! How special. region = new SearializableRegionInfo(RequestNeighbourInfo(region.RegionHandle)); region.RemotingAddress = region.ExternalHostName; - region.RemotingPort = (uint) NetworkServersInfo.RemotingListenerPort; + region.RemotingPort = NetworkServersInfo.RemotingListenerPort; if (m_localBackend.RegionUp(region,regionhandle)) { return true; -- cgit v1.1