MathLinkFactoryCreateMathLink(String) Method

Creates a link based on MathLink/WSTP parameters supplied as an argv-type array of strings.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
public static IMathLink CreateMathLink(
	string[] argv
)

Parameters

argv  String
The array of MathLink arguments.

Return Value

IMathLink
The created link.

Remarks

Use this method if you want to establish a listen/connect link to a program other than the Wolfram Language kernel.

You can use standard MathLink/WSTP specifications for establishing a link, for example -linkprotocol, -linkname, and -linkmode.

An example of a string array argument would be:
C#
string[] mlArgs = {"-linkmode", "listen", "-linkname",  "foo"};
IMathLink ml = MathLinkFactory.CreateMathLink(mlArgs);

Exceptions

MathLinkExceptionIf the opening of the link fails.

See Also