diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-09-04 18:11:53 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-09-06 09:12:27 +0200 |
commit | 116cda0ae03bc4e7b8571cf1658775c13c03c68e (patch) | |
tree | d15cb04d68a063fc3418d0259c9e779514861fcf /src/tools/oping/oping_client.c | |
parent | d35685c537e7809d5c4a213fcfa553d8a522bc51 (diff) | |
download | ouroboros-116cda0ae03bc4e7b8571cf1658775c13c03c68e.tar.gz ouroboros-116cda0ae03bc4e7b8571cf1658775c13c03c68e.zip |
lib: dev: Provide a set of fds to flow_select
The flow_select call now takes as a parameter a flow_set_t, which
specifies a set of flow descriptors that will unblock the select call
when an SDU for one of them arrives. The select call has been moved to
its own header.
Diffstat (limited to 'src/tools/oping/oping_client.c')
-rw-r--r-- | src/tools/oping/oping_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/oping/oping_client.c b/src/tools/oping/oping_client.c index 6e1fbc54..3a254984 100644 --- a/src/tools/oping/oping_client.c +++ b/src/tools/oping/oping_client.c @@ -65,7 +65,7 @@ void * reader(void * o) /* FIXME: use flow timeout option once we have it */ while(client.rcvd != client.count && - (fd = flow_select(&timeout)) != -ETIMEDOUT) { + (fd = flow_select(NULL, &timeout)) != -ETIMEDOUT) { flow_cntl(fd, FLOW_F_SETFL, FLOW_O_NONBLOCK); while (!((msg_len = flow_read(fd, buf, OPING_BUF_SIZE)) < 0)) { if (msg_len < 0) |