Sockets

J

John Smith

How do I check to see if my Socket Connection State is still open or not?
Is there a way that I can get the status of the current state of the Socket
Connection?
 
C

Chad Z. Hower aka Kudzu

John Smith said:
How do I check to see if my Socket Connection State is still open or
not? Is there a way that I can get the status of the current state of
the Socket Connection?

You cant - its part of TCP design. The only way to check a socket is to try to read or write from it.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
 
G

Guest

You can use Socket.IsConnected property to fin whether the socket is
connected or closed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top