mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Merge pull request #1695 from m910q/FixLinuxSocketSelectTimeout
Fixed Socket.Select() timeout on Linux
This commit is contained in:
commit
9f084649c7
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
|
||||
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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue