From 0fb2236580debdd37eeac27a5e0ae81d160400b4 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Sat, 23 Feb 2013 03:34:06 -0500 Subject: server: add CLIENT_FLUSHSUBS control message This adds support to the server for a new client control message, CLIENT_FLUSHSUBS, which flushes all subscriptions and pending retransmits for clients belonging to a given principal. The target principal must be the same as the sender, unless the sender is on the opstaff ACL. This is the server side of #103 --- server/zserver.h | 1 + 1 file changed, 1 insertion(+) (limited to 'server/zserver.h') diff --git a/server/zserver.h b/server/zserver.h index 28b8fdb..f0f4fda 100644 --- a/server/zserver.h +++ b/server/zserver.h @@ -276,6 +276,7 @@ Code_t client_register(ZNotice_t *notice, struct in_addr *host, Client **client_p, int wantdefaults); void client_deregister(Client *client, int flush); void client_flush_host(struct in_addr *host); +void client_flush_princ(char *target); void client_dump_clients(FILE *fp); Client *client_find(struct in_addr *host, unsigned int port); Code_t client_send_clients(void); -- cgit v1.2.3