From: Mark Rabotnikov <markr@cs.huji.ac.il>
Newsgroups: comp.parallel.pvm
Subject: Question about pack/unpack
Date: Sun, 28 Feb 1999 16:10:12 +0200
Organization: Hebrew University, Jerusalem
Message-Id: <36D94E44.446B9B3D@cs.huji.ac.il>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: ukc comp.parallel.pvm:8069


Hello,

I want to have a task that receives a message, unpacks an integer,
and sends the rest of the message to another task.
I try to do this with following commands:

    int i;
    int tid = ...; 
    int tag;
    int bufid = pvm_recv(-1, -1);
    int old_bufid;

    pvm_bufinfo(bufid, (int *)0, &tag, (int *)0);
    pvm_upkint(&i, 1, 1);
    old_bufid = pvm_setsbuf(bufid);
    pvm_freebuf(old_bufid);
    pvm_send(tid, tag);
   
I have troubles with this code. Is it possible to do at all ?
Thanks,

-- 

Mark Rabotnikov
mailto:markr@cs.huji.ac.il

