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

Method connect_ex

Lib/ssl.py:1458–1461  ·  view source on GitHub ↗

Connects to remote ADDR, and then wraps the connection in an SSL channel.

(self, addr)

Source from the content-addressed store, hash-verified

1456 self._real_connect(addr, False)
1457
1458 def connect_ex(self, addr):
1459 """Connects to remote ADDR, and then wraps the connection in
1460 an SSL channel."""
1461 return self._real_connect(addr, True)
1462
1463 def accept(self):
1464 """Accepts a new connection from a remote client, and returns

Callers 6

_real_connectMethod · 0.80
test_connect_ex_errorMethod · 0.80
test_connect_exMethod · 0.80
connectMethod · 0.80

Calls 1

_real_connectMethod · 0.95

Tested by 4

test_connect_ex_errorMethod · 0.64
test_connect_exMethod · 0.64