AnsweredAssumed Answered

Handling RST,ACK request from Client in RTCS

Question asked by Ravindra Gurjar on Nov 22, 2017
Latest reply on Nov 24, 2017 by Daniel Chen

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)

{
  closesocket(sock);

}

 

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()?

Outcomes