def get_socket(self, sessid='<STR_LIT>'):
socket = self.sockets.get(sessid)<EOL>if sessid and not socket:<EOL><INDENT>return None  <EOL><DEDENT>if socket is None:<EOL><INDENT>socket = Socket(self, self.config)<EOL>self.sockets[socket.sessid] = socket<EOL><DEDENT>else:<EOL><INDENT>socket.incr_hits()<EOL><DEDENT>return socket<EOL>
Return an existing or new client Socket.