.NET/Link API Version 1.7 USE FRAMES

IKernelLink.OnPacketArrived Method 

Raises the PacketArrived event.

[Visual Basic]
Function OnPacketArrived( _
   ByVal pkt As PacketType _
) As Boolean
[C#]
bool OnPacketArrived(
   PacketType pkt
);

Parameters

pkt
The packet type that has just arrived.

Return Value

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.

See Also

IKernelLink Interface | Wolfram.NETLink Namespace | HandlePacket