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

Client side

  1. Establish a connection with the server by seeing the name of the server in the list of tasks and extracting its tid. Also, find the farmer process name (opt) and calling process task id.
  2. The server task id should be stored in a global variable and if it contains a server tid, then the search for the server is not required (say a a server tid, then the search for the server is not required (say a previous pvm_farm_init() call has already set it).
  3. Send a message to the server of the type DEF_MSGTAG (1) which contains farm_name, opcode INIT_FARM
  4. Receive a message from the server containing the result of the operation.
  5. Return the value read from the server. This value can be OK or PvmFarmNamePresent or ERROR.


Sameer Shende