I want to copy make a copy of the message structure I am sending. would this
be the best option or is there something missing in this it?

        memcpy(ptr_sentMsg->header,msg->header,sizeof(message_header_t));

        memcpy(ptr_sentMsg->data,ptr_genericMsg->data,len);


memcpy(ptr_sentMsg->metadata,msg->metadata,sizeof(message_metadata_t));


Need an expert opinion as I am having trouble while receiving data sent like
that.

-- 
Wasif Masood
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to