Make socket exceptions more specific to match Python semantics

This commit is contained in:
Joseph Henry
2021-05-19 22:14:15 -07:00
parent 4e0813d167
commit 81d03c3692
3 changed files with 25 additions and 1 deletions

View File

@@ -200,7 +200,7 @@ typedef enum {
extern int zts_errno;
typedef enum {
/** Operation not permitted (`zts_errno` value) */
/** Operation not permitted */
ZTS_EPERM = 1,
/** No such file or directory */
ZTS_ENOENT = 2,
@@ -278,6 +278,8 @@ typedef enum {
ZTS_ENOTCONN = 107,
/** Connection timed out */
ZTS_ETIMEDOUT = 110,
/* Connection refused */
ZTS_ECONNREFUSED = 111,
/** No route to host */
ZTS_EHOSTUNREACH = 113,
/** Operation already in progress */