- From: email@example.com To: (Chikara MIYAJI)
- Date: Sun, 15 Feb 1998 02:10:51 -0500
- Apparently-To: firstname.lastname@example.org
email@example.com Subject: [mg10984] Re: MathLink portnumbers and internal types References: <firstname.lastname@example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Organization: University of Tsukuba In article <email@example.com>, firstname.lastname@example.org (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.