MCPcopy Index your code
hub / github.com/RustPython/RustPython / _check_connected

Method _check_connected

Lib/ssl.py:1121–1127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1119 pass
1120
1121 def _check_connected(self):
1122 if not self._connected:
1123 # getpeername() will raise ENOTCONN if the socket is really
1124 # not connected; note that we can be connected even without
1125 # _connected being set, e.g. if connect() first returned
1126 # EAGAIN.
1127 self.getpeername()
1128
1129 def read(self, len=1024, buffer=None):
1130 """Read up to LEN bytes and return them.

Callers 2

getpeercertMethod · 0.95
do_handshakeMethod · 0.95

Calls 1

getpeernameMethod · 0.45

Tested by

no test coverage detected