"Opens" the next packet arriving on the link.
It is an error to call NextPacket while the current packet has unread data; use NewPacket to discard the current packet first.
Most programmers will use this method rarely, if ever. .NET/Link provides higher-level functions in the IKernelLink interface that hide these low-level details of the packet loop.
Exception Type | Condition |
---|---|
MathLinkException | On any MathLink error, but typically because you have not finished reading the entire contents of the previous packet. |
IMathLink Interface | Wolfram.NETLink Namespace