www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/12/12:18:10

From: haeb AT demon DOT 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 DOT 0 DOT 5 DOT 32 DOT 19980111021357 DOT 0099a780 AT 204 DOT 97 DOT 220 DOT 9>
Mime-Version: 1.0
To: Jason <jason AT superlink DOT net>
Cc: gnu-win32 AT cygnus DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019