Admin Production ni-theme
Current Publication

SetUDPAttribute

LabWindows/CVI

SetUDPAttribute

int SetUDPAttribute (unsigned int channel, int attribute, ...);

Purpose

Sets the value of a UDP channel attribute.

Parameters

Input
Name Type Description
channel unsigned int A handle that uniquely identifies an open UDP communication endpoint.
attribute int The UDP channel attribute to set.
attributeValue ... The value to which to set the specified UDP channel attribute.

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

Example

Refer to udp\UDPChat.cws for an example of using the SetUDPAttribute function.