You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 15:46:33 +09:00
added some debug information for SIO_UDP_CONNRESET
This commit is contained in:
@@ -140,9 +140,14 @@ namespace Lidgren.Network
|
|||||||
uint SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12;
|
uint SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12;
|
||||||
m_socket.IOControl((int)SIO_UDP_CONNRESET, new byte[] { Convert.ToByte(false) }, null);
|
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)
|
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.
|
// this will be thrown on linux but not mac if it doesn't exist.
|
||||||
// ignore; SIO_UDP_CONNRESET not supported on this platform
|
// ignore; SIO_UDP_CONNRESET not supported on this platform
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user