@datanoise @asterite
What do you guys think about instead of doing
tcp_server = TCPServer.new(443)
client = tcp_server.accept
OpenSSL::SSL::Socket.new_server(client, context) do |ssl_server|
To do it like Ruby
tcp_server = TCPServer.open(443)
ssl_server = OpenSSL::SSL::SSLServer.new(server, sslContext)
ssl_server.accept do |client|
...
...
where the accept is bundled into the ssl socket, but the accept is for the io (I think)
?
@datanoise @asterite
What do you guys think about instead of doing
To do it like Ruby
where the accept is bundled into the ssl socket, but the accept is for the io (I think)
?