필터 지우기
필터 지우기

How to detect a closed connection on a tcpip object

조회 수: 3 (최근 30일)
Julius Häuslein
Julius Häuslein 2020년 8월 19일
댓글: Frank Herzog 2020년 11월 2일
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?
  댓글 수: 1
Frank Herzog
Frank Herzog 2020년 11월 2일
I have the same question? Did you find out how to do this?

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by