1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 02:11:06 +09:00

added some debug information for SIO_UDP_CONNRESET

This commit is contained in:
Gordon MacPherson
2017-11-10 15:30:01 +00:00
parent 9e5525711e
commit b696ecde1d

View File

@@ -140,9 +140,14 @@ namespace Lidgren.Network
uint SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12;
m_socket.IOControl((int)SIO_UDP_CONNRESET, new byte[] { Convert.ToByte(false) }, null);
}
else
{
LogDebug("Platform doesn't support SIO_UDP_CONNRESET");
}
}
catch (System.Exception e)
{
LogDebug("Platform doesn't support SIO_UDP_CONNRESET");
// this will be thrown on linux but not mac if it doesn't exist.
// ignore; SIO_UDP_CONNRESET not supported on this platform
}