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


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

- 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 port@host.
Examples
Basic Examples (3)
Represent the active WSTP connection used by the Wolfram Language kernel:
LinkCreate creates a WSTP connection and returns a LinkObject:
Use LinkClose to close the connection:
List of all active LinkObject objects whose name ends with "shm":
See Also
Links LinkReadyQ LinkProtocol LinkClose LinkPatterns LinkRead LinkWrite InputStream
C Functions: WSLINK
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), LinkObject, Wolfram Language function, https://reference.wolfram.com/language/ref/LinkObject.html.
CMS
Wolfram Language. 1996. "LinkObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LinkObject.html.
APA
Wolfram Language. (1996). LinkObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LinkObject.html
BibTeX
@misc{reference.wolfram_2025_linkobject, author="Wolfram Research", title="{LinkObject}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/LinkObject.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_linkobject, organization={Wolfram Research}, title={LinkObject}, year={1996}, url={https://reference.wolfram.com/language/ref/LinkObject.html}, note=[Accessed: 16-August-2025]}