Newsgroups: comp.parallel.pvm
From: whuang@sun30.cs.wisc.edu (Weiqing Huang)
Subject: [Q] length returned by bufinfo when sending bytes
Organization: CS Department, University of Wisconsin
Date: 11 Jun 1995 22:16:58 GMT
Message-ID: <WHUANG.95Jun11171658@sun30.cs.wisc.edu>

Hi, there,

i have a program as the following:

//the sender's program:
char cp[] = "abc";
pvm_initsend(PvmDataDefault);
pvm_pkbyte(cp, strlen(cp), 1);
pvm_send(receiver_tid, tag);


// the receiver's program:
char cp[100];
int bufid = pvm_recv(sender_tid, tag);
int len;
pvm_bufinfo(bufid, &len, (int*)0, (int*)0);
cout << len << endl;

the output should be 3. but actually it was 4. i found out that no
matter how long the data is, the len is always a multiple of
4. is that supposed to be true or is it a bug? 

thanx in advance. 

-- 
--Weiqing

