This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Socket question
- To: Jason <jason at superlink dot net>
- Subject: Re: Socket question
- From: Harry Broomhall <haeb at demon dot net>
- Date: Mon, 12 Jan 1998 13:31:09 +0000 (GMT)
- 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@cygnus.com" with one line of text: "help".