next up previous
Next: Server side Up: int bufid = Previous: int bufid =

Client side

  1. Create a buffer and send a message to the server containing opcode RECV_WORK_PACKET and the worker class id, which is stored in a global variable.
  2. Block on a receive from the server task with a wildcard message tag (-1).
  3. After receiving the message find out the message tag of the buffer received.
  4. If the message tag is FARM_HAS_TERMINATED, then return the constant PvmFarmHasTerminated (a negative number).
  5. Else, return the positive integer which contains the buffer id of the message received.


Sameer Shende