Newsgroups: comp.parallel.pvm
From: mapdjb@midge.bath.ac.uk (D J Batey)
Subject: Re: Parameter passing in HeNCE/PVM
Organization: School of Mathematical Sciences, University of Bath, UK
Date: Wed, 6 Jul 1994 13:15:24 GMT
Message-ID: <CsIsto.9Kx@midge.bath.ac.uk>

> 1) Is it possible to transfer structures (like "struct" in C) between
> tasks?

Yes, but you have to do it yourself -- when sending structs you have
to be able to determine what kind of structure it is, then recursively
'flatten' the structure into a stream of primitive objects, headed
by an identifier indicating the type of the structure. At the receiving
end you need a switch on the type of the structure, then you can
rebuild the struct piece by piece.

-----------------------------------------------------------------------
 Duncan Batey                                          Computing Group,
 djb@maths.bath.ac.uk                            School of Mathematics,
 Postgraduate Research Student             University of Bath, England.
-----------------------------------------------------------------------





