Encapsulated status variables.
Removed name resolution from socket classes.