statschannel.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2008  Internet Systems Consortium, Inc. ("ISC")
00003  *
00004  * Permission to use, copy, modify, and/or distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00009  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00010  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00011  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00012  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00013  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00014  * PERFORMANCE OF THIS SOFTWARE.
00015  */
00016 
00017 /* $Id: statschannel.h,v 1.3 2008/04/03 05:55:51 marka Exp $ */
00018 
00019 #ifndef NAMED_STATSCHANNEL_H
00020 #define NAMED_STATSCHANNEL_H 1
00021 
00022 /*! \file
00023  * \brief
00024  * The statistics channels built-in the name server.
00025  */
00026 
00027 #include <isccc/types.h>
00028 
00029 #include <isccfg/aclconf.h>
00030 
00031 #include <named/types.h>
00032 
00033 #define NS_STATSCHANNEL_HTTPPORT                80
00034 
00035 isc_result_t
00036 ns_statschannels_configure(ns_server_t *server, const cfg_obj_t *config,
00037                            cfg_aclconfctx_t *aclconfctx);
00038 /*%<
00039  * [Re]configure the statistics channels.
00040  *
00041  * If it is no longer there but was previously configured, destroy
00042  * it here.
00043  *
00044  * If the IP address or port has changed, destroy the old server
00045  * and create a new one.
00046  */
00047 
00048 
00049 void
00050 ns_statschannels_shutdown(ns_server_t *server);
00051 /*%<
00052  * Initiate shutdown of all the statistics channel listeners.
00053  */
00054 
00055 isc_result_t
00056 ns_stats_dump(ns_server_t *server, FILE *fp);
00057 /*%<
00058  * Dump statistics counters managed by the server to the file fp.
00059  */
00060 
00061 #endif  /* NAMED_STATSCHANNEL_H */

Generated on Tue Apr 28 17:40:54 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha