2 * Copyright (C) 2008 Internet Systems Consortium, Inc. ("ISC")
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 * PERFORMANCE OF THIS SOFTWARE.
17 /* $Id: statschannel.h,v 1.3 2008/04/03 05:55:51 marka Exp $ */
19 #ifndef NAMED_STATSCHANNEL_H
20 #define NAMED_STATSCHANNEL_H 1
24 * The statistics channels built-in the name server.
27 #include <isccc/types.h>
29 #include <isccfg/aclconf.h>
31 #include <named/types.h>
33 #define NS_STATSCHANNEL_HTTPPORT 80
36 ns_statschannels_configure(ns_server_t *server, const cfg_obj_t *config,
37 cfg_aclconfctx_t *aclconfctx);
39 * [Re]configure the statistics channels.
41 * If it is no longer there but was previously configured, destroy
44 * If the IP address or port has changed, destroy the old server
45 * and create a new one.
50 ns_statschannels_shutdown(ns_server_t *server);
52 * Initiate shutdown of all the statistics channel listeners.
56 ns_stats_dump(ns_server_t *server, FILE *fp);
58 * Dump statistics counters managed by the server to the file fp.
61 #endif /* NAMED_STATSCHANNEL_H */