precv (parallel_doc)

Next: reval, Previous: psend, Up: Cluster execution [Index]

### 3.13 Receiving Octave variables

Loadable Function: precv (single_connection)

  Receive a data value from the parallel cluster machine specified by single_connection.

  This function can be called both at the client machine and (with `reval`) at a server machine. single_connection must be a single connection obtained by indexing the connections variable. Please see `pconnect` for a description of the connections variable, and `pserver` for a description of this variable (named `sockets`) at the server side. If single_connection corresponds to the machine at which `precv` was called, an error is thrown.

  The value received with `precv` must be sent with `psend` from another machine of the cluster. Note that data can be transferred this way between each pair of machines, even sent by a server and received by a different server.

  If `precv` is called at the client machine, a corresponding `psend` should have been called before at the source machine, otherwise the client will hang.

  See also: pconnect, pserver, reval, psend, sclose, parallel_generate_srp_data, select_sockets.