With this in mind I wrote CSimpleSocket to try to bring some sanity to sockets. There are two parts to a socket. The IP address and a port number. This will be empty if the address has no name. This contains the alternate names for the IP address.
Some machines have multiple names.
Closes the socket. Retrieves your IP address. Retrieves your IP host name. Pure virtual function that opens the socket. You have to implement these functions.