[saga-rg] Re: Meeting Notes: Messaging API
Andrei Hutanu
ahutanu at cct.lsu.edu
Tue Nov 22 15:43:21 CST 2005
Andre,
Thanks for the notes!
>
> - read: two step mechanism:
> (int handle, int size) = query_size ();
> (char* buffer) = read (handle, size);
>
> - handle can be zero, if size is known (one step read)
> - buffer needs to be allocated by application.
> - if size is zero, the buffer is allocated by the
> implementation and returned to be freed by the
> application (one step read)
>
>
This part is a bit confusing .. with the one step read you lose the
length of the message?
it should probably be (char* buffer, int size) = read () for the one
step read ..Or am I reading it wrong..
Andrei
More information about the saga-rg
mailing list