aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/UDPServer.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-03-05 22:00:41 +0000
committerAdam Frisby2008-03-05 22:00:41 +0000
commit1410210b844d4b613b3166f57cdc63cfd4148ed0 (patch)
treec25e19183593d6a04823f118659238fe8e4499ae /OpenSim/Region/ClientStack/UDPServer.cs
parent* Three more warnings are a-gone. (diff)
downloadopensim-SC-1410210b844d4b613b3166f57cdc63cfd4148ed0.zip
opensim-SC-1410210b844d4b613b3166f57cdc63cfd4148ed0.tar.gz
opensim-SC-1410210b844d4b613b3166f57cdc63cfd4148ed0.tar.bz2
opensim-SC-1410210b844d4b613b3166f57cdc63cfd4148ed0.tar.xz
* Four more warnings, etc etc.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/UDPServer.cs21
1 files changed, 5 insertions, 16 deletions
diff --git a/OpenSim/Region/ClientStack/UDPServer.cs b/OpenSim/Region/ClientStack/UDPServer.cs
index 395037f..fe2e805 100644
--- a/OpenSim/Region/ClientStack/UDPServer.cs
+++ b/OpenSim/Region/ClientStack/UDPServer.cs
@@ -364,23 +364,12 @@ namespace OpenSim.Region.ClientStack
364 public void ServerListener() 364 public void ServerListener()
365 { 365 {
366 uint newPort = listenPort; 366 uint newPort = listenPort;
367 m_log.Info("[SERVER]: Opening UDP socket on " + listenIP.ToString() + " " + newPort + ".");// Allow alternate ports: " + Allow_Alternate_Port.ToString()); 367 m_log.Info("[SERVER]: Opening UDP socket on " + listenIP.ToString() + " " + newPort + ".");
368 try
369 {
370 ServerIncoming = new IPEndPoint(listenIP, (int)newPort);
371 Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
372 Server.Bind(ServerIncoming);
373 listenPort = newPort;
374 }
375 catch (Exception ex)
376 {
377 // We are not looking for alternate ports?
378 //if (!Allow_Alternate_Port)
379 throw (ex);
380 368
381 // We are looking for alternate ports! 369 ServerIncoming = new IPEndPoint(listenIP, (int)newPort);
382 //m_log.Info("[SERVER]: UDP socket on " + listenIP.ToString() + " " + listenPort.ToString() + " is not available, trying next."); 370 Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
383 } 371 Server.Bind(ServerIncoming);
372 listenPort = newPort;
384 373
385 m_log.Info("[SERVER]: UDP socket bound, getting ready to listen"); 374 m_log.Info("[SERVER]: UDP socket bound, getting ready to listen");
386 375