Admin Production ni-theme
Current Publication

DisposeUDPChannel

LabWindows/CVI

DisposeUDPChannel

int DisposeUDPChannel (unsigned int channel);

Purpose

Disposes of a UDP channel object previously created by a call to CreateUDPChannel or CreateUDPChannelConfig.

You must call this function when you finish using a channel to free its resources.

Parameters

Input
Name Type Description
channel unsigned int A handle that uniquely identifies an open UDP communication endpoint.

Return Value

Name Type Description
status int Return value indicating whether the function was successful.

Zero indicates successful execution and a negative number indicates that an error occurred.

Call the GetUDPErrorString function to obtain a message that describes the error.

Additional Information

Library: UDP Support Library

Include file: udpsupp.h

LabWindows/CVI compatibility: LabWindows/CVI 8.5 and later

Examples

Refer to the following examples that use the DisposeUDPChannel function:

  • udp\DNSResolver.cws

    Open example
  • udp\UDPWriter.cws

    Open example