mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add ECONNREFUSED.
This commit is contained in:
parent
633f4bb55c
commit
25b70f0e1c
2 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,7 @@
|
|||
#define ENOTSOCK 58
|
||||
#define EADDRINUSE 59
|
||||
#define ETIMEDOUT 60
|
||||
#define ECONNREFUSED 61
|
||||
|
||||
#define EOPNOTSUPP ENOTSUP
|
||||
|
||||
|
|
|
@ -79,6 +79,7 @@ extern "C" const char* sortix_strerror(int errnum)
|
|||
case ENOTSOCK: return "Not a socket";
|
||||
case EADDRINUSE: return "Address already in use";
|
||||
case ETIMEDOUT: return "Connection timed out";
|
||||
case ECONNREFUSED: return "Connection refused";
|
||||
default: return "Unknown error condition";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue