This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / System Interface / MathLink /


FilledSmallSquare LinkConnect["name"] connects to a MathLink link created by another program.

FilledSmallSquare LinkConnect by default operates with internet TCP links, with names of the form port@host. Ports are typically specified by numbers.

FilledSmallSquare LinkConnect can connect to a port on a remote computer system.

FilledSmallSquare On some computer systems, LinkConnect[ ] will bring up a port browser.

FilledSmallSquare LinkConnect returns a LinkObject.

FilledSmallSquare You can use LinkConnect with LinkCreate to set up peer-to-peer communication between two Mathematica processes.

FilledSmallSquare LinkConnect can be used to connect to a link created by calling LinkCreate in another Mathematica process.

FilledSmallSquare LinkConnect can be used to connect to an external program that has created a MathLink link by calling the appropriate MathLink library functions.

FilledSmallSquare External programs built from MathLink templates using mcc and mprep can typically create MathLink links whenever they are given -linkcreate command-line arguments.

FilledSmallSquare The option LinkProtocol specifies the underlying data transport protocol that LinkConnect should use.

FilledSmallSquare LinkConnect internally calls a function analogous to the MLOpenArgv() function in the MathLink library.

FilledSmallSquare Even though no program may yet be connected to the other end of the MathLink link, the function LinkConnect will return immediately and will not block.

FilledSmallSquare See Section 2.13.6.

FilledSmallSquare See also: LinkCreate, LinkLaunch, LinkClose.

FilledSmallSquare New in Version 3.