diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-12-12 13:24:17 +0100 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-12-12 15:10:30 +0100 |
commit | f8c14e0246a6c9cb5e8ff47869b5968abb63f010 (patch) | |
tree | d91c005451a74822516669f3f7cc3ade34971abb /include/ouroboros/dev.h | |
parent | b731adbf7b6fa16490f7abf94e2662d82d76cce0 (diff) | |
download | ouroboros-f8c14e0246a6c9cb5e8ff47869b5968abb63f010.tar.gz ouroboros-f8c14e0246a6c9cb5e8ff47869b5968abb63f010.zip |
src, tools: Set/get timeout and get qos for flows
Receiver timeouts can now be set on a flow using the flow_set_timeout
function. Specifying NULL disables the timeout. The flow_get_timeout
function gets the value for the timeout.
This commit also deprecates fcntl in favor of flow_get_flags and
flow_set_flags functions.
struct qos_spec is typedef'd as a qosspec_t.
The tools and cdap.c are updated to use the new API.
Fixes a bug in operf client where the client's writer thread wouldn't
cancel on SIGINT.
Diffstat (limited to 'include/ouroboros/dev.h')
-rw-r--r-- | include/ouroboros/dev.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/ouroboros/dev.h b/include/ouroboros/dev.h index f2e42d03..47665ca4 100644 --- a/include/ouroboros/dev.h +++ b/include/ouroboros/dev.h @@ -35,8 +35,8 @@ int ap_init(char * ap_name); void ap_fini(void); /* Returns flow descriptor (> 0), client AE name and qos spec. */ -int flow_accept(char ** ae_name, - struct qos_spec * qos); +int flow_accept(char ** ae_name, + qosspec_t * qos); int flow_alloc_resp(int fd, int response); @@ -45,9 +45,9 @@ int flow_alloc_resp(int fd, * Returns flow descriptor (> 0). * On returning, qos will contain the actual supplied QoS. */ -int flow_alloc(char * dst_name, - char * src_ae_name, - struct qos_spec * qos); +int flow_alloc(char * dst_name, + char * src_ae_name, + qosspec_t * qos); int flow_alloc_res(int fd); |