Newsgroups: comp.parallel.pvm
From: delgrang@lifl.lifl.fr (delgrange olivier)
Subject: Help with pvm_notify
Organization: Universite des Sciences et Technologie de LILLE, France
Date: 25 Jul 1994 11:52:33 GMT
Message-ID: <310921$746@netserver.univ-lille1.fr>


Hello,

I have some problems with pvm_notify() in pvm 3.3.3. I call it to ask pvm 
to send me a message if a host is deleted or if a task is killed...

When I delete a host, my task don't receive any message. PVM is relatively
new for me so I suppose I didn't use pvm_notify as I would be.

Here is the program :


#include <stdio.h>
#include "pvm3.h"

main()
{ int bufid, info, matache;
  int nbbytes,tag,idtache;

  matache = pvm_mytid();

  printf("Mon numero de tache : %X\n",matache);

  info = pvm_notify(PvmHostDelete,3,1,&matache);

  bufid=pvm_recv(-1,-1);
  info = pvm_bufinfo(bufid,&nbbytes,&tag,&idtache);
  printf("Info apres bufinfo : %d\n",info);
  printf("Tache : %X, nbbytes : %d, tag : %d\n",idtache,nbbytes,tag);

  pvm_exit();
  exit();
}


Thanks

Olivier Delgrange


---------------------------------------------------------------------
Olivier Delgrange
Faculte des Sciences, Service Informatique
Universite de Mons-Hainaut
Avenue Maistriau, 15
7000 Mons (Belgique)

tel : +32 (65) 37 33 58
fax : +32 (65) 37 30 54

E-mail : olivier@sun1.umh.ac.be
         delgrang@lifl.fr
---------------------------------------------------------------------


