Skip to content
Snippets Groups Projects
Commit 2ec0ee08 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

py/moduerrno: Add ECONNREFUSED, one of frequent networking errors.

parent 7c004e79
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
X(ENOBUFS) \ X(ENOBUFS) \
X(ENOTCONN) \ X(ENOTCONN) \
X(ETIMEDOUT) \ X(ETIMEDOUT) \
X(ECONNREFUSED) \
X(EHOSTUNREACH) \ X(EHOSTUNREACH) \
X(EALREADY) \ X(EALREADY) \
X(EINPROGRESS) \ X(EINPROGRESS) \
......
...@@ -75,6 +75,7 @@ ...@@ -75,6 +75,7 @@
#define MP_ENOBUFS (105) // No buffer space available #define MP_ENOBUFS (105) // No buffer space available
#define MP_ENOTCONN (107) // Transport endpoint is not connected #define MP_ENOTCONN (107) // Transport endpoint is not connected
#define MP_ETIMEDOUT (110) // Connection timed out #define MP_ETIMEDOUT (110) // Connection timed out
#define MP_ECONNREFUSED (111) // Connection refused
#define MP_EHOSTUNREACH (113) // No route to host #define MP_EHOSTUNREACH (113) // No route to host
#define MP_EALREADY (114) // Operation already in progress #define MP_EALREADY (114) // Operation already in progress
#define MP_EINPROGRESS (115) // Operation now in progress #define MP_EINPROGRESS (115) // Operation now in progress
...@@ -128,6 +129,7 @@ ...@@ -128,6 +129,7 @@
#define MP_ENOBUFS ENOBUFS #define MP_ENOBUFS ENOBUFS
#define MP_ENOTCONN ENOTCONN #define MP_ENOTCONN ENOTCONN
#define MP_ETIMEDOUT ETIMEDOUT #define MP_ETIMEDOUT ETIMEDOUT
#define MP_ECONNREFUSED ECONNREFUSED
#define MP_EHOSTUNREACH EHOSTUNREACH #define MP_EHOSTUNREACH EHOSTUNREACH
#define MP_EALREADY EALREADY #define MP_EALREADY EALREADY
#define MP_EINPROGRESS EINPROGRESS #define MP_EINPROGRESS EINPROGRESS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment