A new Class for abstract the socket