Socket question
Harry Broomhall
haeb@demon.net
Mon Jan 12 05:50:00 GMT 1998
Jason said:
>
[SNIP]
> void
> parse_data(fd_set * read_fds)
> {
> if (FD_ISSET(socketfd, read_fds))
> if (readline() > 0) {
What does read line do? If it calls read than that's why.
Winsock does not have the Unix property of being able to use
read() and write() on sockets.
> parse(L);
> } else
> close(socketfd);
You can't use close either. Use closesocket().
Regards,
Harry.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
More information about the Cygwin
mailing list