mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #22564: ssl doc: mention how SSLSocket are usually created
This commit is contained in:
parent
3c3d3c73f3
commit
d28fe8c8f4
1 changed files with 3 additions and 0 deletions
|
@ -782,6 +782,9 @@ SSL Sockets
|
|||
the specification of normal, OS-level sockets. See especially the
|
||||
:ref:`notes on non-blocking sockets <ssl-nonblocking>`.
|
||||
|
||||
Usually, :class:`SSLSocket` are not created directly, but using the
|
||||
:func:`wrap_socket` function or the :meth:`SSLContext.wrap_socket` method.
|
||||
|
||||
SSL sockets also have the following additional methods and attributes:
|
||||
|
||||
.. method:: SSLSocket.read(len=0, buffer=None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue