1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-12 21:34:11 +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 #else
public struct HSocket : uint32 public struct HSocket : uint32
{ {
@ -77,16 +84,15 @@ namespace System.Net
return (mSocketBitMasks[fd / BITS_PER_MASK] & (1U << (fd & (BITS_PER_MASK - 1)))) != 0; return (mSocketBitMasks[fd / BITS_PER_MASK] & (1U << (fd & (BITS_PER_MASK - 1)))) != 0;
} }
} }
[CRepr]
public struct TimeVal
{
public int64 mSec;
public int32 mUSec;
}
#endif #endif
[CRepr]
public struct TimeVal
{
public int32 mSec;
public int32 mUSec;
}
#if BF_PLATFORM_WINDOWS #if BF_PLATFORM_WINDOWS
[CRepr] [CRepr]