This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Socket question


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]