Back to Aurora Vision Library website

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

TcpIp_Close


Header: STD.h
Namespace: avl
Module: FoundationLite

Closes a connected TCP socket gracefully.

Syntax

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

See Also

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