_get_sock_fd_type: New function, retrieve fd type and flags like FILE_GetUnixHandleType(). WSASendTo/WSARecvFrom: Use _get_sock_fd_type().