I'm currently facing the situation where I have an HTTP server running and want to perform an action on the device after the HTTP client has received the reply that initiates the action.
This is about network configuration so I must not start with the action if the response hasn't been sent to the client yet. On the other hand I want the system to be responsive so I cannot simply use a larger waiting time.
TL;DR: I would like to know when the connection that is currently handled in the request_notify HTTP server callback is closed. Is there any way to get notified when this happens or to poll for it?
When I send the response with nx_tcp_socket_send and specify a wait option, is it guaranteed that the client has received the packet, confirmed the reception and has closed the connection when it returns NX_SUCCESS?
In reply to JanetC:
In reply to ChrisS: