Named pipe support in 7511

For the Compleat Fan
Locked
pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Named pipe support in 7511

Post by 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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

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

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

You're too fast with your responses, thanx!

Locked