Subject: Re: Socket question
From: [email-masked] (Harry Broomhall)

12 Jan 1998 12:18:10 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
To: Jason <[email-masked]>
Cc: [email-masked]

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
"[email-masked]" with one line of text: "help".