Detecting socket disconnection (Async?)

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Adam Clauss (cabadam_at_tamu.edu)
Date: 04/16/04


Date: Fri, 16 Apr 2004 15:41:09 -0500

There seems to be various methods to determine when the remote client disconnects, but all of them I have seen are Synchronous.
AKA: Right before you try to send or receive data, check.

Is there no way to do raise an event for this? That way you know as soon as the client disconnects?

There are events for Accepting, Connecting, Receiving, Sending... why not one for disconnecting?

-- 
Adam Clauss
cabadam@tamu.edu