Check if client Socket is Disconnected

D

dream machine

Hi all ,
when my client try to connect on my server , the ACCEPT method return the new Socket Connected.

My problem is that i haven't found any Methods of * socket class * that allow my to
listern When any client disconnect from server .

I can loop for every client connected and test the .Connected property :
but it is really poor way.

Now , I think that the best way is send 1 byte at client and test the .Connected property .

Is correct ?

Dream machine
 

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