How to get the socket's specific error reason when POLLERR happens?

432 views Asked by At

When POLLERR comes up after polling, how can I determine the specific error reason?

1

There are 1 answers

0
user207421 On BEST ANSWER

Call getsockopt() with the option SO_ERROR.