Assign a unique socket id to TCP sockets, solving a nick change issue.