SIO_UDP_CONNRESET should work on macs now, thx Gavin

0.9.1.1
UbitUmarov 2019-11-10 19:14:12 +00:00
parent 435c30c038
commit ee68085628
1 changed files with 8 additions and 7 deletions

View File

@ -261,15 +261,16 @@ namespace OpenMetaverse
// This udp socket flag is not supported under mono, // This udp socket flag is not supported under mono,
// so we'll catch the exception and continue // so we'll catch the exception and continue
// Try does not protect some mono versions on mac // Try does not protect some mono versions on mac
if(Util.IsWindows()) // this may work now on all platforms
{ //if(Util.IsWindows())
//{
m_udpSocket.IOControl(SIO_UDP_CONNRESET, new byte[] { 0 }, null); m_udpSocket.IOControl(SIO_UDP_CONNRESET, new byte[] { 0 }, null);
m_log.Debug("[UDPBASE]: SIO_UDP_CONNRESET flag set"); m_log.Debug("[UDPBASE]: SIO_UDP_CONNRESET flag set");
} //}
else //else
{ //{
m_log.Debug("[UDPBASE]: SIO_UDP_CONNRESET flag not supported on this platform, ignoring"); // m_log.Debug("[UDPBASE]: SIO_UDP_CONNRESET flag not supported on this platform, ignoring");
} //}
} }
catch catch
{ {