From: haeb@demon.net (Harry Broomhall)
Subject: Re: Socket question
12 Jan 1998 12:18:10 -0800
Message-ID: <884611869.009427.0.cygnus.gnu-win32@office.demon.net>
References: <3.0.5.32.19980111021357.0099a780@204.97.220.9>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
To: Jason <jason@superlink.net>
Cc: gnu-win32@cygnus.com

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