MCPcopy
hub / github.com/jtesta/ssh-audit / is_connected

Method is_connected

src/ssh_audit/ssh_socket.py:318–320  ·  view source on GitHub ↗

Returns true if this Socket is connected, False otherwise.

(self)

Source from the content-addressed store, hash-verified

316 return self.send(data)
317
318 def is_connected(self) -> bool:
319 """Returns true if this Socket is connected, False otherwise."""
320 return self.__sock is not None
321
322 def close(self) -> None:
323 self.__cleanup()

Callers 3

reconnectMethod · 0.80
runMethod · 0.80
perform_testMethod · 0.80

Calls

no outgoing calls

Tested by 3

reconnectMethod · 0.64
runMethod · 0.64
perform_testMethod · 0.64