MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_session

Method get_session

irc_dpi.py:394–398  ·  view source on GitHub ↗
(self, client_ip: str, server_ip: str,
                    server_port: int)

Source from the content-addressed store, hash-verified

392 return [s.to_dict() for s in sessions[:limit]]
393
394 def get_session(self, client_ip: str, server_ip: str,
395 server_port: int) -> Optional[Dict[str, Any]]:
396 with self._lock:
397 sess = self._sessions.get((client_ip, server_ip, server_port))
398 return sess.to_dict() if sess else None
399
400 def clear(self) -> None:
401 with self._lock:

Callers 1

Calls 2

getMethod · 0.45
to_dictMethod · 0.45

Tested by 1