detecting the socket that cause exception in Socket Select method

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i get an SocketException exception when using socket select method.
how do i know what is the socket that cause the exception ?
can i get this info from the exception instance ?

Thanks.
 
If that exception occurs constantly, you can change the Select method into
Poll one. And poll on every socket...

SocketException doesn't have the instance of the socket
 
Thanks Vadym.

Vadym Stetsyak said:
If that exception occurs constantly, you can change the Select method into
Poll one. And poll on every socket...

SocketException doesn't have the instance of the socket
 

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

Back
Top