I am writing a program for a RevolutionPi with Logi.CAD 3 v2.4.0.
In my program I use my RevPi as a TCP server, which waits for a client to connect and than handles on the TCP commands.
The problem I have is that I don't know how to detect when a client disconnects, is there a way to read the TCP flag of the packets we read with the TCP_Receive function.