aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
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