summaryrefslogtreecommitdiff
path: root/include/ouroboros/flow.h
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-12 15:08:20 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-12 15:08:20 +0200
commitd6f20c13da9ef1aec966f2c0594dbf47a51d340e (patch)
tree9723ba8040cfcb543dadb1ef2417e700673977b6 /include/ouroboros/flow.h
parentccf989a567acc91f8559ea67d69f2b952410010b (diff)
downloadouroboros-d6f20c13da9ef1aec966f2c0594dbf47a51d340e.tar.gz
ouroboros-d6f20c13da9ef1aec966f2c0594dbf47a51d340e.zip
lib: dev: implementation of flow_cntl
allows setting the oflags to make flow_read and flow_write blocking or non-blocking (FLOW_O_NONBLOCK).
Diffstat (limited to 'include/ouroboros/flow.h')
-rw-r--r--include/ouroboros/flow.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ouroboros/flow.h b/include/ouroboros/flow.h
index ff9085f7..380c671b 100644
--- a/include/ouroboros/flow.h
+++ b/include/ouroboros/flow.h
@@ -34,6 +34,9 @@
#define FLOW_O_INVALID (FLOW_O_WRONLY | FLOW_O_RDWR)
+#define FLOW_F_GETFL 00000001
+#define FLOW_F_SETFL 00000002
+
enum flow_state {
FLOW_NULL = 0,
FLOW_ALLOCATED,