1/* 2 * Copyright (C) 2008 Internet Systems Consortium, Inc. ("ISC") 3 * 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. 7 * 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. 15 */ 16 17/* $Id: statschannel.h,v 1.3 2008/04/03 05:55:51 marka Exp $ */ 18 19#ifndef NAMED_STATSCHANNEL_H 20#define NAMED_STATSCHANNEL_H 1 21 22/*! \file 23 * \brief 24 * The statistics channels built-in the name server. 25 */ 26 27#include <isccc/types.h> 28 29#include <isccfg/aclconf.h> 30 31#include <named/types.h> 32 33#define NS_STATSCHANNEL_HTTPPORT 80 34 35isc_result_t 36ns_statschannels_configure(ns_server_t *server, const cfg_obj_t *config, 37 cfg_aclconfctx_t *aclconfctx); 38/*%< 39 * [Re]configure the statistics channels. 40 * 41 * If it is no longer there but was previously configured, destroy 42 * it here. 43 * 44 * If the IP address or port has changed, destroy the old server 45 * and create a new one. 46 */ 47 48 49void 50ns_statschannels_shutdown(ns_server_t *server); 51/*%< 52 * Initiate shutdown of all the statistics channel listeners. 53 */ 54 55isc_result_t 56ns_stats_dump(ns_server_t *server, FILE *fp); 57/*%< 58 * Dump statistics counters managed by the server to the file fp. 59 */ 60 61#endif /* NAMED_STATSCHANNEL_H */ 62