[erlang-questions] fd and controlling process

Steve Vinoski vinoski@REDACTED
Mon Feb 6 14:30:16 CET 2017


On Mon, Feb 6, 2017 at 8:18 AM, Salikhov Dinislam <
Dinislam.Salikhov@REDACTED> wrote:

> Hi!
>
> I have a Unix file descriptor of Erlang VM process.
> I know that it is a TCP socket in ESTABLISHED state.
> Is there a way to receive an Erlang port of the socket?
> Is there a way to receive controlling process of the socket?


See the {fd, integer() >= 0} option that various gen_tcp functions can take:

http://erlang.org/doc/man/gen_tcp.html

--steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170206/3eb67608/attachment.htm>


More information about the erlang-questions mailing list