Back to Aurora Vision Library Lite website

You are here: Start » System » TCP IP » TcpIp_Close

TcpIp_Close


Header: STD.h
Namespace: avl

Closes a connected TCP socket gracefully.

Syntax

C++
Python
 
void avl::TcpIp_Close
(
	avl::SocketId inSocket
)

Parameters

Name Type Default Description
Input value inSocket SocketId Connected socket Id.

Description

Closes the TCP/IP socket with underlying connection and releases resources owned by the socket.

All sockets, created with TcpIp_Connect and TcpIp_Accept should be closed with this filter after their use, regardless of the state of the connection and regardless of the fact whether the connection was closed by the other side.

Hints

Remarks

Warning:All tools applied to a specific device or file should be managed within a single thread to ensure centralized tracking, traceability, and consistency throughout the process.

See Also

  • TcpIp_Accept – Accepts a connection from a remote client.
  • TcpIp_Connect – Connects as a client to a remote TCP server socket.