Async::IO SourceAsyncIOSSLEndpoint

class SSLEndpoint

Definitions

def bind

Connect to the underlying endpoint and establish a SSL connection.

Implementation

def bind
	if block_given?
		@endpoint.bind do |server|
			yield SSLServer.new(server, context)
		end
	else
		@endpoint.bind.map do |server|
			SSLServer.new(server, context)
		end
	end
end

def connect(&block)

Connect to the underlying endpoint and establish a SSL connection.

Implementation

def connect(&block)
	SSLSocket.connect(@endpoint.connect, context, hostname, &block)
end