MLLinkWaitCallBackObject (C Function)

MLLinkWaitCallBackObject has been replaced by WSLinkWaitCallBackObject.

is a MathLink type representing a function pointer with the following declaration: int function(MLINK l, void *u), where l is a MathLink connection and u is reserved for future use.

Details

Examples

Basic Examples  (1)

#include "mathlink.h"

int WaitFunction(MLINK l, void *unused)
{
    return 0;
}

void f(MLINK l)
{
    switch(MLWaitForLinkActivityWithCallback(l, (MLLinkWaitCallBackObject)WaitFunction))
    {
        catch MLWAITERROR:
            /* handle the error. */
            break;
        catch MLWAITSUCCESS:
            /* Read the data off the link */
            break;
        catch MLWAITCALLBACKABORTED:
        default:
            /* wait was aborted */
    }
}