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

Merge pull request #1695 from m910q/FixLinuxSocketSelectTimeout

Fixed Socket.Select() timeout on Linux
This commit is contained in:
Brian Fiete 2022-08-26 17:31:00 +02:00 committed by GitHub
commit 9f084649c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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]