Quality RTOS & Embedded Software

  Real time embedded FreeRTOS RSS feed  


[FreeRTOS+TCP API Reference]

BaseType_t FreeRTOS_issocketconnected( Socket_t xSocket );

Tests to see if a socket is connected.


xSocket   The socket being queried.


If the socket referenced by the xSocket parameter is not a TCP socket then -pdFREERTOS_ERRNO_EINVAL is returned.

If the socket is in the Established or a FIN wait state then pdTRUE is returned. Otherwise pdFALSE is returned;

Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.