Socket question

Harry Broomhall
Mon Jan 12 05:50:00 GMT 1998

Jason said:
> 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().


For help on using this list (especially unsubscribing), send a message to
"" with one line of text: "help".

More information about the Cygwin mailing list