Section: PVM Version 3.4 (3PVM)Updated: 30 August, 1993Local indexUp
pvm_bufinfo() - Returns information about a message buffer.
C int info = pvm_bufinfo( int bufid, int *bytes, int *msgtag,
int *tid )
Fortran call pvmfbufinfo( bufid, bytes, msgtag, tid, info )
Integer specifying a particular message buffer identifier.
Integer returning the length in bytes of the body of the message.
This will be equal to the actual size of the data packed,
if PvmDataRaw is used,
otherwise it may include pad bytes.
Integer returning the message label.
Useful when the message was received with a wildcard msgtag.
Integer returning the source of the message.
Useful when the message was received with a wildcard tid.
Integer status code returned by the routine.
Values less than zero indicate an error.
returns information about the
requested message buffer. Typically it is used to determine
facts about the last received message such as its size or source.
pvm_bufinfo is especially useful when an application
is able to receive any incoming message, and the action
taken depends on the source
associated with the message that comes in first.
If pvm_bufinfo is successful,
will be 0.
If some error occurs then
will be < 0.