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

Method accept

Lib/ssl.py:1412–1422  ·  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

1410 return self._real_connect(addr, True)
1411
1412 def accept(self):
1413 """Accepts a new connection from a remote client, and returns
1414 a tuple containing that new connection wrapped with a server-side
1415 SSL channel, and the address of the remote client."""
1416
1417 newsock, addr = super().accept()
1418 newsock = self.context.wrap_socket(newsock,
1419 do_handshake_on_connect=self.do_handshake_on_connect,
1420 suppress_ragged_eofs=self.suppress_ragged_eofs,
1421 server_side=True)
1422 return newsock, addr
1423
1424 @_sslcopydoc
1425 def get_channel_binding(self, cb_type="tls-unique"):

Callers 3

ntransfercmdMethod · 0.45
get_requestMethod · 0.45
stdlib_socket.pyFile · 0.45

Calls 2

superClass · 0.85
wrap_socketMethod · 0.80

Tested by

no test coverage detected