Hello, You should make a pointer to the message hello that you sent : struct hdr_hello *rp = HDR_HELLO(p); and after that you can get the stored value : rp->storedValue
--- On Sun, 4/11/10, Lyx <[email protected]> wrote: From: Lyx <[email protected]> Subject: [ns] Save a value by using recvHello() To: [email protected] Date: Sunday, April 11, 2010, 7:02 PM Dears Ns-users, I use sendHello () to send a value stored in the node n1 to all its neighbors, how can I save this value in the neighboring nodes by using recvHello (). The Best Regards Lyx
