|
||||||||||||||
If a connection from a remote socket is accepted and a new local socket is created to handle the accepted connection then a handle to the new socket is returned. If xServerSocket is not a valid TCP socket then then FREERTOS_INVALID_SOCKET is returned. If xServerSocket is not in the Listening state (see FreeRTOS_listen()) then FREERTOS_INVALID_SOCKET is returned. If a timeout occurs before a connection from a remote socket is accepted then NULL is returned. Note that, because FreeRTOS does not implement errno, the behaviour in the presence of an error is necessarily different to that of connect() functions that are fully compliant with the expected Berkeley sockets behaviour. Example usage: See the "Creating, configuring and binding a TCP server socket" source code example in the "Creating Configuring and Binding TCP Client and Server Sockets" section of the FreeRTOS+TCP networking tutorial.
|
[ Back to the top ]
[ About FreeRTOS ]
[ Privacy ]
[ FreeRTOS Labs Sitemap ]
[ Main FreeRTOS Sitemap ]
[
]
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|