aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/reqrep
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-10-19 15:16:25 -0700
committerGarrett D'Amore <garrett@damore.org>2017-10-19 17:56:49 -0700
commit4e668fdd5b5da0d46f97d835249dbe5f0ea319a7 (patch)
tree0aaad8a672024b3a510763150b167320be6f1f5b /src/protocol/reqrep
parentd7e39a2423212a31c5ef62dcb0b7a5b4bf9f34df (diff)
downloadnng-4e668fdd5b5da0d46f97d835249dbe5f0ea319a7.tar.gz
nng-4e668fdd5b5da0d46f97d835249dbe5f0ea319a7.tar.bz2
nng-4e668fdd5b5da0d46f97d835249dbe5f0ea319a7.zip
fixes #84 Consider using msec for durations
There is now a public nng_duration type. We have also updated the zerotier work to work with the signed int64_t's that the latst ZeroTier dev branch is using.
Diffstat (limited to 'src/protocol/reqrep')
-rw-r--r--src/protocol/reqrep/req.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocol/reqrep/req.c b/src/protocol/reqrep/req.c
index 7d47b0b3..24d01df2 100644
--- a/src/protocol/reqrep/req.c
+++ b/src/protocol/reqrep/req.c
@@ -282,14 +282,14 @@ static int
req_sock_setopt_resendtime(void *arg, const void *buf, size_t sz)
{
req_sock *s = arg;
- return (nni_setopt_usec(&s->retry, buf, sz));
+ return (nni_setopt_ms(&s->retry, buf, sz));
}
static int
req_sock_getopt_resendtime(void *arg, void *buf, size_t *szp)
{
req_sock *s = arg;
- return (nni_getopt_usec(s->retry, buf, szp));
+ return (nni_getopt_ms(s->retry, buf, szp));
}
// Raw and cooked mode differ in the way they send messages out.