How to detect a closed connection on a tcpip object

1 visualización (últimos 30 días)
Julius Häuslein
Julius Häuslein el 19 de Ag. de 2020
Comentada: Frank Herzog el 2 de Nov. de 2020
I am using the tcpip object to communicate with a C++ server application. I have a bytesAvailableFcn attached and fread the data in this function. I now have the problem that I am not aware of a possibility to detect when the server has closed the connection. Looking at the traffic with Wireshark, i see that a FIN package is being sent to the matlab application.
How can I detect this situation to properly react with an fclose from the Matlab side?

Respuestas (0)

Categorías

Más información sobre Interface-Based Instrument Communication en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by