Commit b0a0bc10 authored by deuce's avatar deuce
Browse files

If a write pointer is specified, and read pointer is NULL, only select for

write.
parent 11caf87d
......@@ -196,6 +196,8 @@ BOOL socket_check(SOCKET sock, BOOL* rd_p, BOOL* wr_p, DWORD timeout)
wr_set_p=&wr_set;
FD_ZERO(wr_set_p);
FD_SET(sock,wr_set_p);
if(rd_p==NULL)
FD_CLR(sock,&rd_set);
}
/* Convert timeout from ms to sec/usec */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment