I am using the RTCS stack for a Ethernet server application. The TCP & UDP sockets are working fine.
When the client application closes the communication from its end, it sends out FIN,ACK. Here the RTCS is closing the socket properly by sending out the response with RST flag set.
However when i close the client application without closing the communication, the client application sends out the request with RST,ACK flags set. In my code, the following condition is met
(RTCS_get_errno() == RTCSERR_SOCK_ESHUTDOWN)
However, the RTCS dont send out the RST response to acknowledge the socket close. Is this expected or i am supposed to call some other api instead of closesocket()?