Added base_socket and client_socket classes