aboutsummaryrefslogtreecommitdiff
path: root/src/core/defs.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-23 11:04:57 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-23 11:05:36 -0800
commita12baf41fb17ef51a8b1d0c82e31113454c5beae (patch)
tree9e9368ae235a08ff4f9a1738d9e9148f567442e1 /src/core/defs.h
parent6f5f10fd56da48aa7d95f80e5f3f03c4097f8132 (diff)
downloadnng-a12baf41fb17ef51a8b1d0c82e31113454c5beae.tar.gz
nng-a12baf41fb17ef51a8b1d0c82e31113454c5beae.tar.bz2
nng-a12baf41fb17ef51a8b1d0c82e31113454c5beae.zip
nng_setopt works (rcvtimeout, etc.) External API adjustments.
The external API now uses simpler names for various things, notably we ditch the whole nng_socket_xx prefix. For example, intstead of nng_socket_create, we just use nng_open(). There are no more nng_socket_xxx calls.
Diffstat (limited to 'src/core/defs.h')
-rw-r--r--src/core/defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/defs.h b/src/core/defs.h
index 478bb464..de81752c 100644
--- a/src/core/defs.h
+++ b/src/core/defs.h
@@ -36,10 +36,11 @@ typedef struct nni_protocol nni_protocol;
typedef int nni_signal; // Turnstile/wakeup channel.
typedef uint64_t nni_time; // Absolute time (usec).
-typedef int nni_duration; // Relative time (usec).
+typedef int64_t nni_duration; // Relative time (usec).
// Some default timing things.
#define NNI_TIME_NEVER ((nni_time) 0xffffffffull)
#define NNI_TIME_ZERO ((nni_time) 0)
+#define NNI_SECOND (1000000)
#endif // CORE_DEFS_H