MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Win32 MathLink .exe from Matheamtica 3 on a Mac

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19262] Re: Win32 MathLink .exe from Matheamtica 3 on a Mac
  • From: paulh at monon.wolfram.com (P.J. Hinton)
  • Date: Thu, 12 Aug 1999 01:24:19 -0400
  • Organization: "Wolfram Research, Inc."
  • References: <7or61l$15o@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <7or61l$15o at smc.vnet.net>, "Andrew Cunningham" <andrewc at vasci.com> writes:

>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 tried this on the Mac......, but I get a dead connection.
>link = LinkConnect["5000 at 192.168.0.6",LinkProtocol->"TCP",LinkMode->
>Connect]

The use of LinkMode is superfluous here.  It was used as an option
to LinkOpen[], whose functionality has been split between LinkCreate[]
and LinkConnect[].

deprecated					current
----------------------------------------------------------------------
LinkOpen[linkname, LinkMode -> Connect] 	LinkConnect[linkname]
LinkOpen[linkname, LinkMode -> Listen]		LinkCreate[linkname]
----------------------------------------------------------------------

One thing you may want to establish is whether you can actually 
establish a connection with one of the precompiled example programs
on the Windows machine.

Run[ToFileName[{$TopDirectory, "AddOns", "MathLink", "DevelopersKits",
  $SystemID, "PrebuiltExamples"}, "AddTwo.exe"]

If you can successfully connect to this link, then you probably need
to run the MathLink binary under a debugger to find where the failure
takes place.

If you cannot connect, then you may want to check the IP address you
specified and verify that the two machines can "see" each other on
the network (e.g. ping).

--
P.J. Hinton
Mathematica Programming Group           paulh at wolfram.com
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.


  • Prev by Date: Re: Mathematica Link for Excel and Excel 2000
  • Next by Date: Re: Win32 MathLink .exe from Matheamtica 3 on a Mac
  • Previous by thread: Re: Win32 MathLink .exe from Matheamtica 3 on a Mac
  • Next by thread: Re: Win32 MathLink .exe from Matheamtica 3 on a Mac