Admin Production ni-theme
Current Publication

CNSDiscardEndpoint

LabWindows/CVI

CNSDiscardEndpoint

int CNSDiscardEndpoint (CNSEndpoint endpointID);

Purpose

Discards an endpoint created using CNSNewScalarEndpoint, CNSNewArrayEndpoint, or CNSNewEndpoint.

Parameters

Input
Name Type Description
endpointID CNSEndpoint The handle of a network stream endpoint. You can obtain this handle using the CNSNewScalarEndpoint, CNSNewArrayEndpoint, or CNSNewEndpoint functions.

Return Value

Name Type Description
error int An error code returned by a Network Streams Library function.

Additional Information

Library: Network Streams Library

Include file: cvinetstreams.h

LabWindows/CVI compatibility: LabWindows/CVI 2013 and later

Examples

Refer to the following examples that use the CNSDiscardEndpoint function:

  • networkstreams\cnsGUI.cws

    Open example
  • networkstreams\cnsSimple.cws

    Open example