[StructLayout(LayoutKind.Sequential)]
public struct fd_set
{
public uint fd_count;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = Size)]
public IntPtr[] fd_array;
private const int Size = 1;
public static fd_set Null
{
get
{
return new fd_set()
{
fd_array = null,
fd_count = 0
};
}
}
public static fd_set Create(IntPtr socket)
{
var handle = new fd_set()
{
fd_count = Size,
fd_array = new IntPtr[Size] { socket }
};
return handle;
}
}
Structure fd_set
Public TODO
End Structure
None.
None.