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