|
[Date Index]
[Thread Index]
[Author Index]
No Subject
mathgroup@smc.vnet.net
Subject: [mg10984] Re: MathLink portnumbers and internal types References:
<6c3abl$10d@smc.vnet.net> Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp Organization: University
of Tsukuba
In article <6c3abl$10d@smc.vnet.net>, f94stbe@dd.chalmers.se (Stefan
Berglund) wrote:
>I wish to have a process to communicate via mathlink peer to peer to a
>remote computer. The problem is that I a start new mathlink
>connections as needed from forked processes and I have found no way of
>telling wich portnumber has been chosen.
Hi Stefan,
There is a MathLink function what you need.
char * MLName(MLINK link)
will return name of the link. Please read mathlink.h, you can find the
definition.
Form the mathlink.h file.
/* MLName returns a pointer to the link's name.
* Links are generally named when they are created
* and are based on information that is potentially
* useful and is available at that time.
* Do not attempt to deallocate the name's storage
* through this pointer. The storage should be
* considered in read-only memory.
*/
MLDECL( kcharp_ct, MLName, ( MLINK mlp));
bye.
Prev by Date:
Re: Bivariate Integrations/Assumptions error/
Next by Date:
Re: MathLink portnumbers and internal types
Prev by thread:
Re: Bivariate Integrations/Assumptions error/
Next by thread:
No Subject
|