summaryrefslogtreecommitdiff
path: root/h
diff options
context:
space:
mode:
authorGravatar David Benjamin <davidben@mit.edu>2013-04-26 14:44:14 -0400
committerGravatar Karl Ramm <kcr@1ts.org>2013-08-08 00:24:58 -0400
commit380d198f6fe5b205f22d056f85fd8c1e63fd8890 (patch)
treef72b237b5e12fcdcc57f1a32495319ebf4dbbda8 /h
parentece582b74f82b82209d795ce96db9ba7008c453f (diff)
Expose Z_Subscriptions as ZSubscriptions
With a custom send_routine that mirrors ZSrvSendList. This allows for an asynchronous version that replaces send_routine with non-blocking versions (and waits for ACKs out-of-band).
Diffstat (limited to 'h')
-rw-r--r--h/zephyr/zephyr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/h/zephyr/zephyr.h b/h/zephyr/zephyr.h
index 207624b..28baa7f 100644
--- a/h/zephyr/zephyr.h
+++ b/h/zephyr/zephyr.h
@@ -236,6 +236,10 @@ Code_t ZIfNotice(ZNotice_t *notice, struct sockaddr_in *from,
int (*predicate)(ZNotice_t *, void *), void *args);
Code_t ZPeekIfNotice(ZNotice_t *notice, struct sockaddr_in *from,
int (*predicate)(ZNotice_t *, char *), char *args);
+Code_t ZSubscriptions(ZSubscription_t *sublist, int nitems,
+ unsigned int port,
+ char *opcode,
+ Code_t (*send_routine)(ZNotice_t *, char *, int, int));
Code_t ZPunt(ZSubscription_t *sublist, int nitems, unsigned int port);
Code_t ZSubscribeTo(ZSubscription_t *sublist, int nitems,
unsigned int port);