({{, (RefLink[EnterExpressionPacket, paclet:ref/EnterExpressionPacket])[expr] 
is a WSTP packet that requests the evaluation of expr.}})

OpenersNotesSection(Spacer1)Details

expr is a Wolfram Language expression, not a string.

expr is evaluated by a complete pass through the Wolfram System main loop.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Launch a subsidiary Wolfram Language kernel process:

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

Read the first packet:

LinkRead[link]

Write an (RefLink[EnterExpressionPacket, paclet:ref/EnterExpressionPacket]) packet to the link without evaluating it:

LinkWrite[link,Unevaluated[EnterExpressionPacket[2+2]]]

Read the resulting packets:

LinkRead[link]

LinkRead[link]

Close the link:

LinkClose[link]

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

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[WSTP and External Program Communication, paclet:tutorial/WSTPAndExternalProgramCommunicationOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Mac OS X), paclet:tutorial/WSTPDeveloperGuide-MacintoshOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Unix and Linux), paclet:tutorial/WSTPDeveloperGuide-UnixOverview])}, {▪(RefLinkPlain[WSTP C API Developer Guide (Windows), paclet:tutorial/WSTPDeveloperGuide-WindowsOverview])}})}})

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