From 380d198f6fe5b205f22d056f85fd8c1e63fd8890 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Fri, 26 Apr 2013 14:44:14 -0400 Subject: 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). --- h/zephyr/zephyr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'h') 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); -- cgit v1.2.3