Externalize client socket in a Class, and use interface to store constants