[erlang-questions] socket argument for ssl_connection:socket_control
Sun Dec 31 15:57:18 CET 2017
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?
> erlang-questions mailing list
Danil Zagoskin | z@REDACTED
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions