LinkObject

LinkObject["name",n1,n2]
is an object that represents an active WSTP connection for functions such as LinkRead and LinkWrite.

DetailsDetails

  • LinkConnect, LinkCreate, LinkLaunch, and Install all return LinkObject objects.
  • The integer n is a serial number used to distinguish links with the same name.
  • name is typically the name of an external program, or an internet TCP specification of the form .

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Represent the active WSTP connection used by the Wolfram Language kernel:

In[1]:=
Click for copyable input
Out[1]=

LinkCreate creates a WSTP connection and returns a LinkObject:

In[1]:=
Click for copyable input
Out[1]=

Use LinkClose to close the connection:

In[2]:=
Click for copyable input

List of all active LinkObject objects whose name ends with :

In[1]:=
Click for copyable input
Out[1]=
Introduced in 1996
(3.0)