Next: Server side
Up: int pvm_farm_init (char
Previous: int pvm_farm_init (char
- 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.
- 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).
- Send a message to the server of the type DEF_MSGTAG (1) which contains
farm_name, opcode INIT_FARM
- Receive a message from the server containing the result of the operation.
- Return the value read from the server. This value can be OK or PvmFarmNamePresent or ERROR.
Sameer Shende