\param fds array of sockets to be polled
\param num_fds size of fds array (number of sockets)
\param sec number of seconds to wait (-1 for no timeout)
\param fds array of sockets to be polled
\param num_fds size of fds array (number of sockets)
\param sec number of seconds to wait (-1 for no timeout)