Re: Win32 MathLink .exe from Matheamtica 3 on a Mac
- To: mathgroup at smc.vnet.net
- Subject: [mg19270] Re: [mg19255] Win32 MathLink .exe from Matheamtica 3 on a Mac
- From: John Fultz <jfultz at wolfram.com>
- Date: Thu, 12 Aug 1999 01:24:24 -0400
- Organization: Wolfram Research, Inc.
- References: <199908110607.CAA01077@smc.vnet.net.>
- Sender: owner-wri-mathgroup at wolfram.com
Andrew Cunningham wrote: > > I have built a MathLink external "application" on my PC. I want to connect > across the 'net from a remote Mathematica frontend running on a Mac . > [ I have built the same mathlink application on the mac and verified that > "locally" the mathlink application works] > > - I run the Mathlink .exe on the PC. A dialog box comes up asking for the > link , I type "5000" so that I assume it creates a link on TCP port 5000. I suspect that this is the problem. You're assuming that it creates a link on the *TCP port* 5000, but that's not true. Unless you specifically called the MLOpen (or whatever variant) with "-linkprotocol tcp", then the thing that is being opened is a *Filemap* port 5000 (FileMaps are how the local protocol is implemented under Windows). Here's what you should do...if you're passing command-line args into MLOpen (I suspect you're using the "template" method of programming MathLink applications, in which case you are), then you should launch your .exe as follows: program -linkmode listen -linkprotocol tcp It'll create a listening link over TCP, and it will give you the name of the link in the task bar. It's okay to specify a name, but the problem with doing so is the name may already be taken by another MathLink program or another TCP program. John Fultz jfultz at wolfram.com Front End Group Wolfram Research, Inc. > I tried this on the Mac......, but I get a dead connection. > link = LinkConnect["5000 at 192.168.0.6",LinkProtocol->"TCP",LinkMode-> > Connect] > > Documentation on this topic seems pretty sparse. > > Andrew > > -- > > ---------------------- > Andrew Cunningham > Vibro-Acoustic Sciences Inc > http://www.vasci.com > mailto: andrewc at vasci.com
- References:
- Win32 MathLink .exe from Matheamtica 3 on a Mac
- From: "Andrew Cunningham" <andrewc@vasci.com>
- Win32 MathLink .exe from Matheamtica 3 on a Mac