WOLFRAM

int WSIsLinkLoopback( WSLINK l )

queries the WSTP connection given by l to see if the link is a loopback link.

Details

  • WSIsLinkLoopback() returns 1 if l is a loopback link and 0 otherwise.
  • WSIsLinkLoopback() is declared in the WSTP header file wstp.h.

Examples

Basic Examples  (1)Summary of the most common use cases

#include "wstp.h"

/* A function to close just loopback links */

void f(WSLINK l)
{
    if(WSIsLinkLoopback(l))
        WSClose(l);
}