public static fd_set Create(IntPtr socket) { var handle = new fd_set { fd_count = 1, fd_array = socket }; return handle; }
public static extern int select(Int32 nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, timeval* timeout);