Add a mapping from sockets to client structures.