WSIsLinkLoopback()
This feature is not supported on the Wolfram Cloud.

int WSIsLinkLoopback(WSLINK l)
queries the WSTP connection given by l to see if the link is a loopback link.

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

#include "wstp.h"

/* A function to close just loopback links */

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