Tom Archer on Converting Numeric and String Data
Tom Archer has a new tip up on CodeGuru.com that deals with converting numeric and string data via sockets:
C++ Tip: Receiving & Converting Numeric and String Data via Sockets
...when you start sending and receiving numeric data via sockets, you have to be aware of conversion issues in terms of what type of machine is on the other end of the connection. Specifically, you need to know how to convert numeric data from the local machine's format (host order) to the industry standard format for sending sockets data (network order).