named pipe as port?
Wed Jul 25 01:38:55 CEST 2001
I open a named pipe/fifo, created with mkfifo, as a port
and that seems to work ok.
Fifo = open_port(fifo, [eof]).
It is also works to open more than one fifo as port
and handle receive from them in parallel.
However, documentation for open_port tells me:
This use of open_port() is obsolete and will be removed
in a future version of Erlang. Use the file module instead."
But if I try to open the fifo with Fifo = file:open("fifo",)
Is there a correct way to connect to a fifo?
Get Your FREE FlashMail Address now at http://www.flashmail.com
It's Free, Easy, & Fun !!!
More information about the erlang-questions