diff options
author | Jeff Ames | 2007-12-06 01:41:41 +0000 |
---|---|---|
committer | Jeff Ames | 2007-12-06 01:41:41 +0000 |
commit | 4bde56457f574060c1aaaca8effba1f6fe00b6c7 (patch) | |
tree | 60c081be8f3d00da63940efd81ce88de6fe1f2a5 /OpenSim/Region/ClientStack/UDPServer.cs | |
parent | Some refactoring of the RestObjectPoster (and related classes). (diff) | |
download | opensim-SC_OLD-4bde56457f574060c1aaaca8effba1f6fe00b6c7.zip opensim-SC_OLD-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.gz opensim-SC_OLD-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.bz2 opensim-SC_OLD-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.xz |
removed some duplicate hard-coded port numbers. changed ports to uint.
Diffstat (limited to 'OpenSim/Region/ClientStack/UDPServer.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/UDPServer.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/UDPServer.cs b/OpenSim/Region/ClientStack/UDPServer.cs index b0586a3..aaf7224 100644 --- a/OpenSim/Region/ClientStack/UDPServer.cs +++ b/OpenSim/Region/ClientStack/UDPServer.cs | |||
@@ -49,7 +49,7 @@ namespace OpenSim.Region.ClientStack | |||
49 | protected PacketServer m_packetServer; | 49 | protected PacketServer m_packetServer; |
50 | protected ulong m_regionHandle; | 50 | protected ulong m_regionHandle; |
51 | 51 | ||
52 | protected int listenPort; | 52 | protected uint listenPort; |
53 | protected IScene m_localScene; | 53 | protected IScene m_localScene; |
54 | protected AssetCache m_assetCache; | 54 | protected AssetCache m_assetCache; |
55 | protected LogBase m_log; | 55 | protected LogBase m_log; |
@@ -83,7 +83,7 @@ namespace OpenSim.Region.ClientStack | |||
83 | { | 83 | { |
84 | } | 84 | } |
85 | 85 | ||
86 | public UDPServer(int port, AssetCache assetCache, LogBase console, AgentCircuitManager authenticateClass) | 86 | public UDPServer(uint port, AssetCache assetCache, LogBase console, AgentCircuitManager authenticateClass) |
87 | { | 87 | { |
88 | listenPort = port; | 88 | listenPort = port; |
89 | m_assetCache = assetCache; | 89 | m_assetCache = assetCache; |
@@ -180,9 +180,9 @@ namespace OpenSim.Region.ClientStack | |||
180 | 180 | ||
181 | public void ServerListener() | 181 | public void ServerListener() |
182 | { | 182 | { |
183 | m_log.Verbose("SERVER", "Opening UDP socket on " + listenPort); | 183 | m_log.Verbose("SERVER", "Opening UDP socket on " + listenPort.ToString()); |
184 | 184 | ||
185 | ServerIncoming = new IPEndPoint(IPAddress.Parse("0.0.0.0"), listenPort); | 185 | ServerIncoming = new IPEndPoint(IPAddress.Parse("0.0.0.0"), (int) listenPort); |
186 | Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); | 186 | Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); |
187 | Server.Bind(ServerIncoming); | 187 | Server.Bind(ServerIncoming); |
188 | 188 | ||