Download FreeRTOS

Quality RTOS & Embedded Software

Simplifying Authenticated Cloud Connectivity for Any Device.
Designing an energy efficient and cloud-connected IoT solution with CoAP.
Introducing FreeRTOS Kernel version 11.0.0:
FreeRTOS Roadmap and Code Contribution process.
OPC-UA over TSN with FreeRTOS.


[FreeRTOS-Plus-TCP API Reference]

BaseType_t FreeRTOS_outstanding( Socket_t xSocket );

Returns the number of bytes in a TCP socket's Tx stream that are yet to be transmitted.


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 referenced by the xSocket parameter does not yet have a Tx stream then 0 is returned (the Tx stream is not created until it is required).

In all other cases the returned value is the number of bytes that remain in the socket's Tx stream.

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