next up previous
Next: Server side Up: int pvm_get_worker_class_id (char Previous: int pvm_get_worker_class_id (char

Client side

  1. Take the global variable which identifies the server task (its tid) and send a message to the server.
  2. The message should contain opcode GET_WORKER_CLASS_ID, farm name and the worker class name.
  3. Receive reply from the server
  4. Unpack the message and extract the return value.
  5. The return value (if nonnegative) will contain the worker class id (wcid) or the error message PvmFarmNotCreated if the farm is not created by the farmer prior to invoking this call.
  6. return the integer received from the server.


Sameer Shende