AnsweredAssumed Answered

RTCS detecting remote side close on a socket

Question asked by pmt on Nov 12, 2014
Latest reply on Nov 13, 2014 by Martin Latal

How do I detect if the remote endpoint is closed, or issued a shutdown request without actually reading or writing data to the socket (or using a KEEPALIVE which is only a polled test)?  I.E. how do I determine the socket state?


'RTCS_selectset(s, 1, -1) == s' tells me if "Data or shutdown request is initiated by remote endpoint or all sent data are acknowledged", but how do I determine which one (shutdown or data ack)?