preserving message boundaries on named pipes - System V

Wietse Z. Venema wietse at wzv.UUCP
Thu May 18 18:01:02 AEST 1989


In article <571 at lehi3b15.csee.Lehigh.EDU> murrey at lehi3b15.csee.Lehigh.EDU (Erik Murrey) writes:
>System V.3.1 Unix
>
>Is it possible to preserve message boundaries on named pipes under
>System V?  For instance, if a process sends two separate messages (via
>two write()'s) down a named pipe, how can the receiver read those as
>two separate messages?  

Under UNIX, the reader just reads what the writer wrote into the pipe.
There are no magic cookies between the `data'. What you seem to want
is provided by the message-queue (the msgop(2) facilities.
-- 
work:	wswietse at eutrc3.uucp	| Eindhoven University of Technology
work:	wswietse at heitue5.bitnet	| Mathematics and Computing Science
home:	wietse at wzv.uucp		| Eindhoven, The Netherlands



More information about the Comp.unix.wizards mailing list