[erlang-questions] socket argument for ssl_connection:socket_control

Joe K goodjoe2049@REDACTED
Mon Jan 1 19:06:28 CET 2018


Thanks, Danil!

On Sun, Dec 31, 2017 at 5:57 PM, Danil Zagoskin <z@REDACTED> wrote:

> Hi!
>
> It's because a socket in ssl app (TLS, DTLS) is an Erlang process.
> Port is used internally only for TCP/UDP transport, and higher-level
> operations (handshake, encoding, decoding, etc.) are performed by a
> dedicated worker written in Erlang.
> A tuple you see is needed to identify that worker. It also contains some
> other data, but the main part is the worker pid.
>
> On Sun, Dec 31, 2017 at 4:41 PM, Joe K <goodjoe2049@REDACTED> wrote:
>
>> Why is socket not a port, but a tuple for dtls_connection?
>>
>> https://github.com/erlang/otp/blob/master/lib/ssl/src/ssl_co
>> nnection.erl#L164
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>
>
> --
> Danil Zagoskin | z@REDACTED
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180101/a1ebbbfb/attachment.htm>


More information about the erlang-questions mailing list