For a few months now, aqu4bot's Windows support has been broken. Compilation would fail because nonblocking sockets were not properly doable in Windows the way it was intended. I was using the same network core I use on the IRC protocol to download HTTP.
It worked, except when it hung. This affected mainly the $title command. So I added the nonblocking, which was necessary, but this broke all Windows support. I was reluctant in using libcurl because although I love libcurl, I only had two commands for aqu4 that used HTTP. That was $ddg and $title.
The good news is libcurl is VERY portable and works well under Windows. So needless to say aqu4bot's Net_GetHTTP() function was removed in favor of a new CurlCore_GetHTTP().
There is now a hard dependency on libcurl, but that's fine I suppose, since I now have my precious and arguably useless Windows support once more.
To celebrate, I created a new icon for aqu4bot that is used as the icon for the Windows executable: http://universe2.us/collector/aqu4bot.png
There's still a small issue with $time, as Windows does not have zoneinfo so I can't set the timezone properly, but everything else appears to work!
(Score: 0) by Anonymous Coward on Tuesday September 02 2014, @10:50AM
Have you tried ReadFileEx with overlapped IO? Granted it is a bit low level. http://msdn.microsoft.com/en-us/library/windows/desktop/aa365468(v=vs.85).aspx [microsoft.com]
And for TZ, you can use GetTimeZoneInformation http://msdn.microsoft.com/en-us/library/windows/desktop/ms724421(v=vs.85).aspx [microsoft.com]