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

428 Views Asked by At

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

1

There are 1 best solutions below

0
On BEST ANSWER

Call getsockopt() with the option SO_ERROR.