newLISP Fan Club

Forum => Anything else we might add? => Topic started by: pjot on March 15, 2004, 02:34:06 PM

Title: Named pipe support in 7511
Post by: pjot on March 15, 2004, 02:34:06 PM
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.
Title:
Post by: Lutz on March 15, 2004, 02:41:56 PM
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
Title:
Post by: pjot on March 15, 2004, 02:42:30 PM
Never mind, I already see the trick in the Linux forum... ok I'll test that first, thanx...
Title:
Post by: pjot on March 15, 2004, 02:43:37 PM
You're too fast with your responses, thanx!