<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/netclass/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/netclass/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/netclass/feature-requests/</id><updated>2001-09-03T07:46:36Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>trigger event on client termination</title><link href="https://sourceforge.net/p/netclass/feature-requests/1/" rel="alternate"/><published>2001-09-03T07:46:36Z</published><updated>2001-09-03T07:46:36Z</updated><author><name/><uri>https://sourceforge.net</uri></author><id>https://sourceforge.net6c3bc24d28c7f81a3d170a1882f0c0f425f0f470</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If the socket is closed by the client, we want to know about it!&lt;br /&gt;
Subsequent writing to the socket has undefined behaviour.&lt;/p&gt;
&lt;p&gt;Preferrably, a callback function can be registered to capture this event.&lt;br /&gt;
The callback should be passed an token that it defined for that socket.&lt;br /&gt;
And example might be:&lt;/p&gt;
&lt;p&gt;void OnClientDisconnect(int token) {&lt;br /&gt;
// do stuff&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;....&lt;br /&gt;
socket-&amp;amp;gt;onClientDisconnect(OnClientDisconnect,1); // where 1 is the &lt;br /&gt;
token&lt;br /&gt;
.....&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>