LinkCreate

LinkCreate["name"]

creates a WSTP link with the specified name for another program to connect to.

LinkCreate[]

creates a WSTP link and picks an unused name for the link.

Details and Options

  • LinkCreate returns a LinkObject.
  • You can use LinkCreate and LinkConnect to set up peertopeer communication between two Wolfram System processes.
  • LinkCreate[] by default creates a shared memory link.
  • The option LinkProtocol specifies the underlying data transport protocol to use.
  • LinkCreate[LinkProtocol->"TCPIP"] picks an unused TCP/IP port on your computer system and creates a WSTP link on it.
  • LinkCreate internally calls a function analogous to the WSOpenArgv() function in the WSTP library.

Examples

Basic Examples  (3)

Create a link with name "test":

Close the link:

Create a link:

Close the link:

Find an unallocated TCPIP port and create a WSTP link:

Wolfram Research (1996), LinkCreate, Wolfram Language function, https://reference.wolfram.com/language/ref/LinkCreate.html.

Text

Wolfram Research (1996), LinkCreate, Wolfram Language function, https://reference.wolfram.com/language/ref/LinkCreate.html.

CMS

Wolfram Language. 1996. "LinkCreate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/LinkCreate.html.

APA

Wolfram Language. (1996). LinkCreate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LinkCreate.html

BibTeX

@misc{reference.wolfram_2024_linkcreate, author="Wolfram Research", title="{LinkCreate}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/LinkCreate.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_linkcreate, organization={Wolfram Research}, title={LinkCreate}, year={1996}, url={https://reference.wolfram.com/language/ref/LinkCreate.html}, note=[Accessed: 21-November-2024 ]}