Next: Server side
Up: int bufid =
Previous: int bufid =
- 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.
- Block on a receive from the server task with a wildcard message tag (-1).
- After receiving the message find out the message tag of
the buffer received.
- If the message tag is FARM_HAS_TERMINATED, then return the constant PvmFarmHasTerminated (a negative number).
- Else, return the positive integer which contains the buffer id of the message received.
Sameer Shende