|Hint: Use the tree menu to navigate groups of related pages|
[FreeRTOS+TCP API Reference]
BaseType_t FreeRTOS_closesocket( Socket_t xSocket );
Close a socket.
The function is named FreeRTOS_closesocket() rather than simply FreeRTOS_close() to avoid potential name space collisions with functions in FreeRTOS+IO.
A socket should be shutdown gracefully before it is closed, and cannot be used after it has been closed.
The handle of the socket being closed. The socket
must have already been created (see
and cannot be used after it has been closed.
0 is always returned.
Although FreeRTOS+TCP does not [currently] use the return value in a meaningful way, the return value is included in the function prototype to ensure consistency with the expected standard Berkeley sockets API, and to ensure compatibility with future versions of FreeRTOS+TCP.