IKernelLinkOnPacketArrived Method

Raises the PacketArrived event.

Definition

Namespace: Wolfram.NETLink
Assembly: Wolfram.NETLink (in Wolfram.NETLink.dll) Version: 2.0.0.0
C#
bool OnPacketArrived(
	PacketType pkt
)

Parameters

pkt  PacketType
The packet type that has just arrived.

Return Value

Boolean
Whether to continue processing the packet.

Remarks

Very few programmers will call this directly. It is normally called by the internal packet loop that .NET/Link runs when you call WaitForAnswer, WaitAndDiscardAnswer, or one of the "EvaluateTo" methods. Programmers who for some reason choose to write their own packet loop must call this method to raise the PacketArrived event so that delegates attached to that event can be notified.

See the example for HandlePacket(PacketType).

See Also