[erlang-questions] what does open_port({fd,0,1},...) do?

devdoer bird <>
Wed Oct 1 17:15:46 CEST 2008


Thanks .I read the manual before this mail.But the manul is not very clear.
Can you give more details please? Such as why this special {fd,In,Out}  port
is needed?

2008/10/1 Maxim Treskin <>

> erl -man erlang
>
> =====
> open_port(PortName, PortSettings) -> port()
>                     PortName = {spawn, Command} | {fd, In, Out}
>                        Command = string()
>                        In = Out = int()
> ...
>                 {fd, In, Out}:
>                     Allows  an  Erlang  process to access any currently
> opened file descriptors used by Erlang. The file descriptor In can be
>                     used for standard input, and the file descriptor Out
> for standard output. It is only used  for  various  servers  in  the
>                     Erlang operating system (shell and user). Hence, its
> use is very limited.
> =====
>
> --
> Maxim Treskin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081001/3b168924/attachment.html>


More information about the erlang-questions mailing list