How to tell the client has end the connection during IPC using QLocalSocket?
<p>I have two programs doing IPC using QLocalSocket &amp; QLocalServer, I have managed to implement the connection and send the data successfully. </p>

<p>However, for the QLocalServer side, how can I know a connection is ended by client (like the client program quit.)?</p>

<p>So that I could release the resource of corresponding socket on server side?</p>