new

SSLSocket.new(io) => aSSLSocket
SSLSocket.new(io, ctx) => aSSLSocket
Class Public methods

Creates a new SSL socket from io which must be a real ruby object (not an IO-like object that responds to read/write.

If ctx is provided the SSL Sockets initial params will be taken from the context.

The OpenSSL::Buffering module provides additional IO methods.

This method will freeze the SSLContext if one is provided; however, session management is still allowed in the frozen SSLContext.

doc_ruby_on_rails
2015-04-26 04:32:40
Comments
Leave a Comment

Please login to continue.