diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2022-02-25 17:34:29 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2022-03-03 12:00:54 +0100 |
commit | f5d642a06f9c1a58197313b32f6b213a152e446f (patch) | |
tree | 19ec9813f2d83fae986ff2bddbf5511c5b7662da /include/ouroboros/errno.h | |
parent | db5e9bf4f884097ec919aa40b02d8eafab05cfa8 (diff) | |
download | ouroboros-f5d642a06f9c1a58197313b32f6b213a152e446f.tar.gz ouroboros-f5d642a06f9c1a58197313b32f6b213a152e446f.zip |
lib: Make flow liveness timeout configurable
The qosspec_t now has a timeout value that sets the timeout value of
the flow. Flows with a peer that has timed out will now return
-EFLOWPEER on flow_read() or flow_write().
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'include/ouroboros/errno.h')
-rw-r--r-- | include/ouroboros/errno.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ouroboros/errno.h b/include/ouroboros/errno.h index 06f33bef..b9f8dbc0 100644 --- a/include/ouroboros/errno.h +++ b/include/ouroboros/errno.h @@ -31,7 +31,8 @@ #define EIPCP 1003 /* Failed to communicate with IPCP */ #define EIPCPSTATE 1004 /* Target in wrong state */ #define EFLOWDOWN 1005 /* Flow is down */ -#define ECRYPT 1006 /* Encryption error */ -#define ENAME 1007 /* Naming error */ +#define EFLOWPEER 1006 /* Flow is down (peer timed out) */ +#define ECRYPT 1007 /* Encryption error */ +#define ENAME 1008 /* Naming error */ #endif /* OUROBOROS_ERRNO_H */ |