Check if client Socket is Disconnected

  • Thread starter Thread starter dream machine
  • Start date Start date
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
 
Back
Top