WSLinkWaitCallBackObject
This feature is not supported on the Wolfram Cloud.


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

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "wstp.h"

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

void f(MLINK l)
{
    switch(WSWaitForLinkActivityWithCallback(l, (WSLinkWaitCallBackObject)WaitFunction))
    {
        catch WSWAITERROR:
            /* handle the error. */
            break;
        catch WSWAITSUCCESS:
            /* Read the data off the link */
            break;
        catch WSWAITCALLBACKABORTED:
        default:
            /* wait was aborted */
    }
}