From: jason AT superlink DOT net (Jason) Subject: Socket question 11 Jan 1998 05:05:57 -0800 Message-ID: <3.0.5.32.19980111021357.0099a780.cygnus.gnu-win32@204.97.220.9> References: <9801101741 DOT AA09638 AT modi DOT xraylith DOT wisc DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: "GnuWin32 Mailing List" I ported a few programs I wrote for bsdi, which compiled flawlessly. When run, the programs are able to create the socket, and connect, however data read in from the remote host, does not appear to be read in properly. The programs run properly in unix, but not when compiled for windows, i include a bit of the source so maybe someone out there can help. In readline, i have the program log the incoming data, in UNIX, it logs the actual input, in winnt, it turns out to be blank lines logged instead.... ----------- begin bit of source ------------ switch (select(NFDBITS, &fdvar, (fd_set *) 0, (fd_set *) 0, &timeout)) { parse_data(&fdvar); break; ---- and parse_data ----- void parse_data(fd_set * read_fds) { if (FD_ISSET(socketfd, read_fds)) if (readline() > 0) { parse(L); } else close(socketfd); } ----------- end source ------------- Thanks for any help given. -jas - 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".