Named pipe support in 7511

Started by pjot, March 15, 2004, 02:34:06 PM

Previous topic - Next topic

pjot

Hi Lutz,



This release says: new mode for 'open' "pipe' or "p" opens a named pipe non-blocking for reading.



Will writing also be possible?? Since a regular write will overwrite the pipe file.



I am interested in this since my GTK-server now supports named-pipe communication as well.



Regards



Peter.

Lutz

#1
The (open "myfifo" p) mode is only necessary if you want to avoid blocking when opening or reading the fifo. But once the the named pipe is created you can open it normaly for write using (open "myfifo" "w") and use the (write-buffer handle string) to write to it and (read-buffer ...) without a problem. See earlier example, there was no problem using the normal open and write operations.



Lutz

pjot

#2
Never mind, I already see the trick in the Linux forum... ok I'll test that first, thanx...

pjot

#3
You're too fast with your responses, thanx!