1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed Socket.Select() timeout on Linux

This commit is contained in:
m910q 2022-08-26 17:11:57 +02:00
parent 60ca7a42c7
commit 9c1ef2203f

View file

@ -40,6 +40,13 @@ namespace System.Net
}
}
[CRepr]
public struct TimeVal
{
public int32 mSec;
public int32 mUSec;
}
#else
public struct HSocket : uint32
{
@ -77,16 +84,15 @@ namespace System.Net
return (mSocketBitMasks[fd / BITS_PER_MASK] & (1U << (fd & (BITS_PER_MASK - 1)))) != 0;
}
}
[CRepr]
public struct TimeVal
{
public int64 mSec;
public int32 mUSec;
}
#endif
[CRepr]
public struct TimeVal
{
public int32 mSec;
public int32 mUSec;
}
#if BF_PLATFORM_WINDOWS
[CRepr]