IMathLinkNextPacket Method

"Opens" the next packet arriving on the link.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
PacketType NextPacket()

Return Value

PacketType

Remarks

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.

Exceptions

MathLinkExceptionOn any MathLink error, but typically because you have not finished reading the entire contents of the previous packet.

See Also