[erlang-questions] Listen to SSL and normal TCP connections on the same port
Jonathan Schneider
jon@REDACTED
Wed Apr 17 09:30:58 CEST 2013
The STARTTLS command is used for this in SMTP and friends.
Jon
On 17 Apr 2013, at 00:38, pablo platt <pablo.platt@REDACTED> wrote:
> 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list