MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _check_connected

Method _check_connected

tools/python-3.11.9-amd64/Lib/ssl.py:1149–1155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1147 pass
1148
1149 def _check_connected(self):
1150 if not self._connected:
1151 # getpeername() will raise ENOTCONN if the socket is really
1152 # not connected; note that we can be connected even without
1153 # _connected being set, e.g. if connect() first returned
1154 # EAGAIN.
1155 self.getpeername()
1156
1157 def read(self, len=1024, buffer=None):
1158 """Read up to LEN bytes and return them.

Callers 2

getpeercertMethod · 0.95
do_handshakeMethod · 0.95

Calls 1

getpeernameMethod · 0.80

Tested by

no test coverage detected