PVM.buffers {rpvm}R Documentation

Manipulating Message Buffers

Description

Get or set the id of the active send/receive buffer.

Usage

.PVM.getsbuf ()
.PVM.getrbuf ()
.PVM.setsbuf (bufid)
.PVM.setrbuf (bufid)

Arguments

bufid integer message buffer id

Details

The function .PVM.getsbuf returns the id of the active send buffer or 0 if no current buffer.

The function .PVM.getrbuf returns the id of the active receive buffer or 0 if no current buffer.

The function .PVM.setrbuf switches the active receive buffer to bufid and saves the previous active receive buffer and returns its id. If bufid is set to 0, the present active receive buffer is saved and no active receive buffer exists.

The function .PVM.setsbuf switches the active send buffer to bufid and saves the previous active send buffer and returns its id. If bufid is set to 0, the present active send buffer is saved and no active send buffer exists.

The set functions are required to manage multiple message buffers.

Value

The get functions return the id of active send/receive buffer. The set functions return the id the old send/receive buffer (-1 indicate an error).

Author(s)

Na (Michael) Li nali@umn.edu and A.J. Rossini rossini@u.washington.edu

References

PVM documentation

See Also

.PVM.mkbuf, .PVM.freebuf

Examples

## Not run: sbufid <- .PVM.getsbuf ()

[Package rpvm version 0.6-2 Index]