Basic socket.
Contructor pattern in c++