My problem: A program was using 127.0.0.2 (an alias for 127.0.0.1) to make a local connection on a specific port. However, one Windows 2003 server box was configured so that this port was being listened to on a specific network adapter (and hence a specific IP address). Hence, my local connection failed even though the [...]
Archive for the ‘Windows API’ Category
Getting listening ports and addresses programmatically
Posted in C++, Sockets, Windows API on November 10, 2007 | Leave a Comment »
“Loss of information”
Posted in C++, Windows, Windows API on August 8, 2007 | Leave a Comment »
I’ve always wondered (and again two days ago) what “irreversible loss of information” is being referd to when you reset a local user password from the “Computer Management” console. Independantly, I’ve been tracking down a bug reported by one PMG Connect user in which the connection routine fails.
These things are linked. The bug was a call [...]
Block Sock Block
Posted in C++, Sockets, Windows, Windows API on August 7, 2007 | Leave a Comment »
WinHttpGetProxyForUrl also blocks. This is despite the documentation saying that it won’t if you close the handle during it’s operation. (Let’s face it, Microsoft programmers often have a very loose sense of the meaning of block, what’s a minute or two.) Anyway, this called for a generic class for blocking things (see previous post re [...]