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)
| 1461 | return self._real_connect(addr, True) |
| 1462 | |
| 1463 | def accept(self): |
| 1464 | """Accepts a new connection from a remote client, and returns |
| 1465 | a tuple containing that new connection wrapped with a server-side |
| 1466 | SSL channel, and the address of the remote client.""" |
| 1467 | |
| 1468 | newsock, addr = super().accept() |
| 1469 | newsock = self.context.wrap_socket(newsock, |
| 1470 | do_handshake_on_connect=self.do_handshake_on_connect, |
| 1471 | suppress_ragged_eofs=self.suppress_ragged_eofs, |
| 1472 | server_side=True) |
| 1473 | return newsock, addr |
| 1474 | |
| 1475 | @_sslcopydoc |
| 1476 | def get_channel_binding(self, cb_type="tls-unique"): |
no test coverage detected