W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1998

LibWWW on NT4.0

From: Jeff Nelson <nelson@ida.com>
Date: Mon, 31 Aug 1998 12:36:02 -0500
Message-ID: <01BDD4DB.EDCDDD60@CALLISTO>
To: "'www-lib@w3.org'" <www-lib@w3.org>
Hello,
    I am attempting to add url loading to our product using the libwww library, and have gotten
it to work pretty good on our Unix systems, and now we are trying to get it to work on
Windows.  I have gotten the library to build (as a statically linked library) but nothing seems
to work.  This is with version 5.1m (both with and without patches).

- I am building on an NT 4.0 SP3 system with VC 5.0.  We have our own development
  environment which merely sets up paths and builds on the command line.

- I have built the ComLine program.  It gives a "HTDoConnect. Connect failed (10022)" error
  when I run the program passing in a valid url.  If I update the library with the latest patches
  found in the archive (post-5.1m source), then the program works only if I turn on debug
  messages (add a -vpt argument).  I am trying to load a file via ftp from a system on our
  LAN.

- I had basically stripped down the ComLine program to the bare minimum and used it in
  our program, and we get the same behavior as the ComLine does (turn on debug messages
  and everything works).

- I had also tried the LoadToFile.c that was posted earlier, but it behaves the same way.

- The libwww code has not been changed except for a few header files, mainly to get it to
  build in our environment (one or two #defines).

We have tried to debug this, and it seems to be some sort of timing issue.  We have noticed
that in the HTTCP.c, in HTDoConnect(), is looks like on a retry the function goes to a
TCP_ERROR state.  We tried having it return a HT_PENDING, but that does not seem
to do the trick.  We have also noticed that there is a WinSock2 library (ws2_32.lib).  Should we
be linking against that instead of wsock32.lib?

Thank you for bearing with me.  Any assistance would be greatly appreciated.  Let me know if
you need more info.

Sincerely,

Jeff Nelson
Received on Monday, 31 August 1998 14:52:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT