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

- MLLinkWaitCallBackObject is used with MLWaitForLinkActivityWithCallback().
- A function used as a MLLinkWaitCallBackObject should return 1 to indicate MLWaitForLinkActivityWithCallback() should return.
- MLLinkWaitCallBackObject is defined in the MathLink header file mathlink.h.
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 */
}
}