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.


ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "wstp.h"

int WaitFunction(WSLINK l, void *unused)
    return 0;

void f(WSLINK l)
    switch(WSWaitForLinkActivityWithCallback(l, (WSLinkWaitCallBackObject)WaitFunction))
        catch WSWAITERROR:
            /* handle the error. */
        catch WSWAITSUCCESS:
            /* Read the data off the link */
            /* wait was aborted */
Translate this page: