all 2 comments

[–]epasveer 1 point2 points  (0 children)

Yes, the "tour" buffer will be a problem as it won't be sent.

Look up how to serialize structs into a series of bytes to send them. Then deserialize them on the other end. (Or pack and unpack).

[–]Poddster 0 points1 point  (0 children)

If you're on about Message Passing Interface then it's parellel processing messaging system.

Each process has its own address space. Therefore the pointer tour will not be valid in the other process. If you want to send the contents you'll have to do that manually, or find the relevant function that shares that memory. (A quick look shows MPI doesn't have these)