1SETMWID(3PVM)                   PVM Version 3.4                  SETMWID(3PVM)
2
3
4

NAME

6       pvm_getmwid, pvm_setmwid - Get or set wait ID of a message.
7       [In Version 3.4: Relaced by pvm_getminfo and pvm_setminfo]
8
9

SYNOPSIS

11       C    int info = pvm_getmwid( int bufid )
12            int info = pvm_setmwid( int bufid, int waitid )
13
14       Fortran   Not Available
15
16

PARAMETERS

18       bufid   Message buffer identifier.
19
20       waitid  Wait identifier number.
21
22

DESCRIPTION

24       A  wait  identifier is part of a message (like the source, destination,
25       tag and body).  It is used  to  match  a  reply  to  the  corresponding
26       request.
27
28       The default wait ID for a message is zero (none).
29
30       pvm_getmwid  returns the wait ID associated with a message buffer, or a
31       negative error code.
32
33       pvm_setmwid assigns a new wait ID to  a  message  buffer.   It  returns
34       PvmOk unless an error occurs.
35
36

EXAMPLES

38            int src, tag;
39
40            pvm_recv(-1, -1);
41            /* ... process, compose reply message */
42            pvm_setmwid(pvm_getsbuf(), pvm_getmwid(pvm_getrbuf()));
43            pvm_bufinfo(pvm_getrbuf(), (int *)0, &tag, &src);
44            pvm_send(src, tag);
45
46

ERRORS

48       The  following  error  conditions  can  be  returned  by pvm_getmwid or
49       pvm_setmwid:
50
51       PvmBadParam
52              Invalid value for bufid argument.
53
54       PvmNoSuchBuf
55              Message buffer bufid doesn't exist.
56

SEE ALSO

58       pvm_bufinfo(3PVM)
59
60
61
62                                 18 May, 1994                    SETMWID(3PVM)
Impressum