mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 22:04:09 +02:00
Fixed Socket.Select() timeout on Linux
This commit is contained in:
parent
60ca7a42c7
commit
9c1ef2203f
1 changed files with 14 additions and 8 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue