Newsgroups: comp.parallel.pvm
From: Chris Humphres <chumphre@BLOCKSPAM.ee.duke.edu>
Subject: Re: How to get hostname?
Organization: Duke University
Date: Mon, 03 Nov 1997 10:57:43 -0500
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <345DF477.406@BLOCKSPAM.ee.duke.edu>

Off the top of my head, I believe you can get this information from the
pvm_config function call.

binh wrote:
> 
> Hi,
> 
> For my application I would like to get the name of host on which
> a process with the given ID runs.
> 
> My question is: Is there a routine like TID2HOSTNAME, which returns
> the name of host by giving TID?
> 
> For example:
>    tid = pvm_mytid();
>    hostname = TID2HOSTNAME(tid)
> 
> I would be most grateful for any help and comment.
> 
> Binh

-- 
Chris

Please remove BLOCKSPAM. from my email address to reply.

