[vos-d] URL::parse problem
Peter Amstutz
tetron at interreality.org
Thu Apr 19 10:57:34 EDT 2007
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 ][ tetron at interreality.org ][ peter.amstutz at gdit.com ]
[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 ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.interreality.org/pipermail/vos-d/attachments/20070419/b7e7130d/attachment.pgp
More information about the vos-d
mailing list