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