Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!mailrus!accuvax.nwu.edu!tank!eecae!cps3xx!usenet
From: usenet@cps3xx.UUCP (Usenet file owner)
Newsgroups: comp.sys.isis
Subject: Broadcasting messages in messages
Message-ID: <4169@cps3xx.UUCP>
Date: 15 Aug 89 18:51:43 GMT
Reply-To: adc@frith.egr.msu.edu (Alan D. Cabrera)
Organization: Michigan State University
Lines: 40

I'm attempting to broadcast messages inside messages.  update() does the
broadcast to to the registered entry, receive().  But when receive()
attempts to extract the message from the message I get the message:

	msg_reconstruct: inconsistency in data block

The value returned in msg_p is null.

Am I doing something wrong?


Alan Cabrera

-------------------------------------------------------------------------------

update ()
{
	message *msg_p;
	int i;

	msg_p = msg_newmsg ();
	for (i=0; i<10; i++)
		msg_put (msg_p, "%d", i);
	bcast (gaddr, RECEIVE, "%m", msg_p, 0);
	msg_delete (msg_p);
}

receive (mp)
message *mp;
{
	int index, i;
	message *msg_p;

	msg_get (mp, "%m", &msg_p);
	for (i=0; i