({{, (RefLink[CallPacket, paclet:ref/CallPacket])[integer,list] 
is a WSTP packet encapsulating a request to invoke the external function numbered integer with the arguments contained in list.}})

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Start a WSTP-compatible external program:

link = Install[$InstallationDirectory<>"/SystemFiles/Links/WSTP/DeveloperKit/"<>$SystemID<>"/PrebuiltExamples/addtwo"];

Write a (RefLink[CallPacket, paclet:ref/CallPacket]):

LinkWrite[link,CallPacket[0,{1,2}]]

Read the result:

LinkRead[link]

Terminate the external program:

Uninstall[link];

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

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