MCPcopy Index your code
hub / github.com/python/cpython / _check_connected

Method _check_connected

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

Source from the content-addressed store, hash-verified

1135 pass
1136
1137 def _check_connected(self):
1138 if not self._connected:
1139 # getpeername() will raise ENOTCONN if the socket is really
1140 # not connected; note that we can be connected even without
1141 # _connected being set, e.g. if connect() first returned
1142 # EAGAIN.
1143 self.getpeername()
1144
1145 def read(self, len=1024, buffer=None):
1146 """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