title: How build non-blocking TCP server with ssl encryption
body: <p><a href="http://www.trapexit.org/Building_a_Non-blocking_TCP_server_using_OTP_principles" rel="nofollow noreferrer">Non-blocking TCP server on trapexit.org</a> explains how to build server based on tcp_gen, but i want to modify this example and make it work with ssl. For now i have completely no idea how to replace </p>
  
  <pre>{ok, Ref} = prim_inet:async_accept(Listen_socket, -1)</pre>