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

disabled code causes crash on OSX, but not on linux even though it's not supporte on unix.

This commit is contained in:
RevoluPowered
2017-11-09 22:26:05 +00:00
committed by Gordon MacPherson
parent a7468f4f1c
commit 4c81cf3c03
3 changed files with 32 additions and 8 deletions

View File

@@ -131,10 +131,10 @@ namespace Lidgren.Network
try
{
const uint IOC_IN = 0x80000000;
const uint IOC_VENDOR = 0x18000000;
uint SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12;
m_socket.IOControl((int)SIO_UDP_CONNRESET, new byte[] { Convert.ToByte(false) }, null);
//const uint IOC_IN = 0x80000000;
//const uint IOC_VENDOR = 0x18000000;
//uint SIO_UDP_CONNRESET = IOC_IN | IOC_VENDOR | 12;
//m_socket.IOControl((int)SIO_UDP_CONNRESET, new byte[] { Convert.ToByte(false) }, null);
}
catch
{