mirror of https://github.com/python/cpython
Issue #22564: ssl doc: mention how SSLSocket are usually created
This commit is contained in:
parent
3c3d3c73f3
commit
d28fe8c8f4
|
@ -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…
Reference in New Issue