preserving message boundaries on named pipes - System V

Robert Claeson prc at erbe.se
Thu May 18 17:43:39 AEST 1989


In article <571 at lehi3b15.csee.Lehigh.EDU> murrey at lehi3b15.csee.Lehigh.EDU (Erik Murrey) writes:

>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?

You can't, as far as I know. I'd suggest you to take a look at message
queues instead. They are also more efficient than pipes since they don't
deal with the file system at all.
-- 
          Robert Claeson      E-mail: rclaeson at erbe.se
	  ERBE DATA AB



More information about the Comp.unix.wizards mailing list