({{, (RefLink[MessagePacket, paclet:ref/MessagePacket])[symbol,string] 
is a WSTP packet containing a Wolfram Language message identifier of the form symbol::string.}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

link=LinkLaunch[First[$CommandLine] <> " -mathlink"]

Read the first packet:

LinkRead[link]

Write the packet representing the text "10+" to enter:

LinkWrite[link,EnterTextPacket["10+"]]

The evaluation failed, and a (RefLink[MessagePacket, paclet:ref/MessagePacket]) expression is returned:

LinkRead[link]

LinkRead[link]

LinkRead[link]

Close the link:

LinkClose[link]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interrupt, paclet:ref/Interrupt])  ▪  (RefLink[Abort, paclet:ref/Abort])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP and External Program Communication, paclet:tutorial/WSTPAndExternalProgramCommunicationOverview])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[WSTP Packets, paclet:guide/WSTPPackets])}, {▪(RefLinkPlain[Messages, paclet:guide/Messages])}})}})