« September 2006 | October 2006 Archives | November 2006 »

Socket Server code - addressing bug fix

| 0 Comments
There's a bug in one of the constructors for CSocket::InternetAddress which means that changing the example servers to use a specific network adapter's address, rather than INADDR_ANY will generate an exception from the call to bind which says that the address is invalid. The code currently reads like this: CSocket::InternetAddress::InternetAddress( const unsigned long address, const unsigned short port) { sin_family = AF_INET; sin_port = htons(port); sin_addr.s_addr = htonl(address); } and it should read like this: CSocket::InternetAddress::InternetAddress( const unsigned long address, const unsigned short port) { sin_family = AF_INET; sin_port = htons(port); sin_addr.s_addr = address; } This bug only affects The…
« September 2006 | October 2006 Archives | November 2006 »

About this Archive

This page is an archive of entries from October 2006 listed from newest to oldest.

September 2006 is the previous archive.

November 2006 is the next archive.

I usually write about C++ development on Windows platforms, but I often ramble on about other less technical stuff...

Find recent content on the main index or look in the archives to find all content.

I have other blogs...

Subscribe to feed The Server Framework - high performance server development
Subscribe to feed Lock Explorer - deadlock detection and multi-threaded performance tools
Subscribe to feed l'Hexapod - embedded electronics and robotics
Subscribe to feed MegèveSki - skiing