TCP Close Connection Function
- Updated2025-07-30
- 2 minute(s) read
Closes a TCP network connection.

Inputs/Outputs
connection ID
—
connection ID is a network connection refnum that uniquely identifies the TCP connection you want to close.
abort (F)
—
abort is reserved for future use.
error in (no error)
—
error in describes error conditions that occur before this node runs. With the following exception, this input provides standard error in functionality. This node runs normally even if an error occurred before this node runs.
connection ID out
—
connection ID out has the same value as connection ID. Do not wire this output to other TCP functions.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Data Communication\Protocols\TCP\TCP Named Service\TCP Named Service.lvproj
connection ID
—
abort (F)
—
error in (no error)
—
connection ID out
—
error out
—