SNALinkDispatchProc

The SNALinkDispatchProc function is the link dispatcher function. The Base calls this function whenever one of the following events occurs:

VOID SNALinkDispatchProc(
PTRBFHDR msgptr,
INTEGER function,
INTEGER locality
);

Parameters

msgptr
The message to be processed, or NULL if some other event is being notified.
function
The reason for SNALinkDispatchProc being called.
locality
L value (only valid for function SBLOST).

Remarks

The function parameter can have one of three values:

0 Message received.
SBLOST Contact lost with local node; L-value of locality.
SBTICK Base timer has expired; occurs every five seconds.

See Sample Code for SNALinkDispatchProc for suggested usage of this function.