class IO::Endpoint::SSLEndpoint
def bind(*arguments, **options, &block)
-
(Socket)- the connected socket
Other tags:
- Yield: - the socket which is being connected
def bind(*arguments, **options, &block) if block_given? @endpoint.bind(*arguments, **options) do |server| yield ::OpenSSL::SSL::SSLServer.new(server, self.context) end else @endpoint.bind(*arguments, **options).map do |server| ::OpenSSL::SSL::SSLServer.new(server, self.context) end end end