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

Method accept

tools/python-3.11.9-amd64/Lib/ssl.py:1422–1432  ·  view source on GitHub ↗

Accepts a new connection from a remote client, and returns a tuple containing that new connection wrapped with a server-side SSL channel, and the address of the remote client.

(self)

Source from the content-addressed store, hash-verified

1420 return self._real_connect(addr, True)
1421
1422 def accept(self):
1423 """Accepts a new connection from a remote client, and returns
1424 a tuple containing that new connection wrapped with a server-side
1425 SSL channel, and the address of the remote client."""
1426
1427 newsock, addr = super().accept()
1428 newsock = self.context.wrap_socket(newsock,
1429 do_handshake_on_connect=self.do_handshake_on_connect,
1430 suppress_ragged_eofs=self.suppress_ragged_eofs,
1431 server_side=True)
1432 return newsock, addr
1433
1434 @_sslcopydoc
1435 def get_channel_binding(self, cb_type="tls-unique"):

Callers 3

ntransfercmdMethod · 0.45
get_requestMethod · 0.45
mainFunction · 0.45

Calls 1

wrap_socketMethod · 0.45

Tested by

no test coverage detected