Try doing a dummy read operation.  If the client has disconnected, it will
throw an exception because you are attempting a socket operation on a closed
socket.  Simply catch this exception and do whatever processing you want to
do if the client has disconnected.

...Glenn

On Mon, Oct 13, 2008 at 8:56 AM, Usman <[EMAIL PROTECTED]> wrote:

>
> I am Developing a Multithreaded Server with many Clients Connecting to
> it, The Problem i have is that, I want to Check the status of each
> client which was previouly connected to the server, that is whether it
> is connected until current time or not. As if it is disconnected so
> that i can remove it from the server's List of Clients and stop its
> thread.I have use TcpClient's "Connected" Property, but that doesn't
> works.Please Any Body who can help me thanx in advance.
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment

You may subscribe to group Feeds using a RSS Feed Reader to stay upto date 
using following url  

<a href="http://feeds.feedburner.com/DotNetDevelopment";> 
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---

Reply via email to