ssl.SSLSocket

class ssl.SSLSocket(socket.socket)

SSL sockets provide the following methods of Socket Objects:

However, since the SSL (and TLS) protocol has its own framing atop of TCP, the SSL sockets abstraction can, in certain respects, diverge from the specification of normal, OS-level sockets. See especially the notes on non-blocking sockets.

Usually, SSLSocket are not created directly, but using the wrap_socket() function or the SSLContext.wrap_socket() method.

Changed in version 3.5: The sendfile() method was added.

Changed in version 3.5: The shutdown() does not reset the socket timeout each time bytes are received or sent. The socket timeout is now to maximum total duration of the shutdown.

doc_python
2016-10-07 17:42:55
Comments
Leave a Comment

Please login to continue.