Added base classes for the socket classes