[erlang-questions] Listen to SSL and normal TCP connections on the same port

pablo platt <>
Wed Apr 17 01:38:21 CEST 2013


Hi,

Is it possible to accept SSL connections and normal TCP connections on the
same port?
Maybe accept normal TCP connections. If the connection is SSL connection
pass it to the ssl module  and if it is a normal TCP connection just handle
the socket.

If it is possible, how can I distinct SSL from non SSL connections?
How can I pass the socket to the ssl module?

In my case I control the server but I can't change the client.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130417/1a46f939/attachment.html>


More information about the erlang-questions mailing list