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 ‘Sockets’ Category
Getting listening ports and addresses programmatically
Posted in C++, Sockets, Windows API on November 10, 2007 | Leave a Comment »
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 [...]