On Thu, Apr 19, 2007 at 07:47:24AM -0700, Ken Taylor wrote:
> Ahh ok. Looking at it more closely, I see that the addrinfo struct actually
> does specify port 80, so that's not the problem.
> 
> The problem is this line:
> snprintf(line, sizeof(line),
>          "GET %s HTTP/1.0\r\nUser-Agent: Virtual Object System HTTP
> binding\r\n\r\n",
>          url.getString().c_str());

Gah!  Good find.  I'm so sorry :-)

> (BTW: the getaddrinfo_wrapper function wasn't working at all on WIN32. It
> can't handle the case where "hints" is 0, and it doesn't look at "services."
> Luckily, the windows SDK has a getaddrinfo function, so I removed all that
> WIN32 specific stuff and it worked fine. Same thing with freeaddrinfo and
> getnameinfo. It has a gai_strerror, too, but the documentation says it's not
> threadsafe and to use WSAGetLastError instead, so I left that wrapper in
> place. The only problem with these is compiling on windows2000 with MINGW -- 
> the default MINGW headers only define them for WinXP or later. I found a
> workaround for this, though, which I posted here
> http://interreality.org/pipermail/vos-d/2006-November/002041.html )

Hmm.  The wrapper was there because I've had problems with getaddrinfo 
not being available on Windows 2000.  Not as in not compiling, but 
missing such that even a binary install of VOS won't run due to a 
getaddrinfo missing DLL symbol error.  It's very annoying.

> All in all, I think I've got your demo gallery completely working on
> windows, built with MSVC :)  -- I'll have to post a summary describing all
> the tweaks I had to make to get it working in the next few days, after I've
> tested to make sure they still work on mingw, as well.

Great work!

-- 
[   Peter Amstutz  ][ [EMAIL PROTECTED] ][ [EMAIL PROTECTED] ]
[Lead Programmer][Interreality Project][Virtual Reality for the Internet]
[ VOS: Next Generation Internet Communication][ http://interreality.org ]
[ http://interreality.org/~tetron ][ pgpkey:  pgpkeys.mit.edu  18C21DF7 ]

Attachment: signature.asc
Description: Digital signature

_______________________________________________
vos-d mailing list
[email protected]
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d

Reply via email to