Hello,I would like to make a client with TCP Socket. How can I detect that the socket is broken ? Merci Philippe
That is one of the really tricky parts of the network API. Its easy enough for sending part, as it will fail after some seconds where the receiver is not available. For the receive part you are forced to use KeepAlive. Its the only way you can detect the broken link with no data being send. Not sure what version you are using of NETOS, but default is about 2 hours. On some versions you can adjust the keep alive time. I suggest you contact support in Germany with Olaf Schiller. He is the best supporter they have.