Newsgroups: comp.parallel.pvm
Path: ukc!uknet!newcastle.ac.uk!tuda!n1yrc
From: Raj.Subramani@newcastle.ac.uk (D. Subramani)
Subject: Send / receive [Newbie ques].
Nntp-Posting-Host: tuda
Message-ID: <CJw6pC.5wn@newcastle.ac.uk>
Organization: University of Newcastle upon Tyne, UK, NE1 7RU
Date: Wed, 19 Jan 1994 19:41:35 GMT
Lines: 27


I tried to hack the master1.c/slave1.c code that comes
in the examples dir with pvm3.x so as to send a message
to a particular slave.

tids was just one number (one slave), created by

pvm_spawn(SLAVENAME, (char **) 0, "machine_name", 1, &tids);

The message was initialized with pvm_initsend, packed and
sent using

pvm_send(tids, 0)

At the Slave end the message was received by,

pvm_recv(mytids, 0)  [mytids obtained from pvm_mytids()]
unpacked, and processed.

Is this the right way to send to a particular machine
or is there summin' wrong .... cause it don't work.

Thanks for any help

Cheers

-raj.subramani@newcastle.ac.uk

