Back to FabImage Library website
You are here: Start » Function Reference » System » TCP IP » TcpIp_Close
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Closes a connected TCP socket gracefully.
Syntax
void fil::TcpIp_Close
(
fil::SocketId inSocket
)
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
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
- Connect inSocket with the output of TcpIp_Connect or TcpIp_Accept.
See Also
- TcpIp_Accept – Accepts a connection from a remote client.
- TcpIp_Connect – Connects as a client to a remote TCP server socket.