Skip to content
Advertisement

errno.h socket/connection error classification

I’m using boost::asio on linux to send http request, using almost exactly this code boost asio http

I want to catch exceptions and classify them using errno.h error codes to three groups

GROUP 1. errors occurred because of local host socket/connection.

GROUP 2. errors occurred because of local host or remote host or third party.

GROUP 3. errors occurred because of remote host socket/connection.

Error codes + errno.h define

What I managed to classify (Im not sure about it)

GROUP 1

JavaScript

GROUP 2

JavaScript

GROUP 3

JavaScript

I hope you can help me find incorrect error codes in the groups or add error code i missed to the groups.

Advertisement

Answer

Group 2:

JavaScript

Group 3:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement