Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/bind9/isc
File: httpd.h
/*
[0] Fix | Delete
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
[1] Fix | Delete
*
[2] Fix | Delete
* This Source Code Form is subject to the terms of the Mozilla Public
[3] Fix | Delete
* License, v. 2.0. If a copy of the MPL was not distributed with this
[4] Fix | Delete
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
[5] Fix | Delete
*
[6] Fix | Delete
* See the COPYRIGHT file distributed with this work for additional
[7] Fix | Delete
* information regarding copyright ownership.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
#ifndef ISC_HTTPD_H
[12] Fix | Delete
#define ISC_HTTPD_H 1
[13] Fix | Delete
[14] Fix | Delete
/*! \file */
[15] Fix | Delete
[16] Fix | Delete
#include <stdbool.h>
[17] Fix | Delete
[18] Fix | Delete
#include <isc/event.h>
[19] Fix | Delete
#include <isc/eventclass.h>
[20] Fix | Delete
#include <isc/types.h>
[21] Fix | Delete
#include <isc/mutex.h>
[22] Fix | Delete
#include <isc/task.h>
[23] Fix | Delete
#include <isc/time.h>
[24] Fix | Delete
[25] Fix | Delete
/*%
[26] Fix | Delete
* HTTP urls. These are the URLs we manage, and the function to call to
[27] Fix | Delete
* provide the data for it. We pass in the base url (so the same function
[28] Fix | Delete
* can handle multiple requests), and a structure to fill in to return a
[29] Fix | Delete
* result to the client. We also pass in a pointer to be filled in for
[30] Fix | Delete
* the data cleanup function.
[31] Fix | Delete
*/
[32] Fix | Delete
struct isc_httpdurl {
[33] Fix | Delete
char *url;
[34] Fix | Delete
isc_httpdaction_t *action;
[35] Fix | Delete
void *action_arg;
[36] Fix | Delete
bool isstatic;
[37] Fix | Delete
isc_time_t loadtime;
[38] Fix | Delete
ISC_LINK(isc_httpdurl_t) link;
[39] Fix | Delete
};
[40] Fix | Delete
[41] Fix | Delete
#define HTTPD_EVENTCLASS ISC_EVENTCLASS(4300)
[42] Fix | Delete
#define HTTPD_SHUTDOWN (HTTPD_EVENTCLASS + 0x0001)
[43] Fix | Delete
[44] Fix | Delete
#define ISC_HTTPDMGR_FLAGSHUTTINGDOWN 0x00000001
[45] Fix | Delete
[46] Fix | Delete
/*
[47] Fix | Delete
* Create a new http daemon which will send, once every time period,
[48] Fix | Delete
* a http-like header followed by HTTP data.
[49] Fix | Delete
*/
[50] Fix | Delete
isc_result_t
[51] Fix | Delete
isc_httpdmgr_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task,
[52] Fix | Delete
isc_httpdclientok_t *client_ok,
[53] Fix | Delete
isc_httpdondestroy_t *ondestory, void *cb_arg,
[54] Fix | Delete
isc_timermgr_t *tmgr, isc_httpdmgr_t **httpdp);
[55] Fix | Delete
[56] Fix | Delete
void
[57] Fix | Delete
isc_httpdmgr_shutdown(isc_httpdmgr_t **httpdp);
[58] Fix | Delete
[59] Fix | Delete
isc_result_t
[60] Fix | Delete
isc_httpdmgr_addurl(isc_httpdmgr_t *httpdmgr, const char *url,
[61] Fix | Delete
isc_httpdaction_t *func, void *arg);
[62] Fix | Delete
[63] Fix | Delete
isc_result_t
[64] Fix | Delete
isc_httpdmgr_addurl2(isc_httpdmgr_t *httpdmgr, const char *url,
[65] Fix | Delete
bool isstatic,
[66] Fix | Delete
isc_httpdaction_t *func, void *arg);
[67] Fix | Delete
[68] Fix | Delete
isc_result_t
[69] Fix | Delete
isc_httpd_response(isc_httpd_t *httpd);
[70] Fix | Delete
[71] Fix | Delete
isc_result_t
[72] Fix | Delete
isc_httpd_addheader(isc_httpd_t *httpd, const char *name,
[73] Fix | Delete
const char *val);
[74] Fix | Delete
[75] Fix | Delete
isc_result_t
[76] Fix | Delete
isc_httpd_addheaderuint(isc_httpd_t *httpd, const char *name, int val);
[77] Fix | Delete
[78] Fix | Delete
isc_result_t isc_httpd_endheaders(isc_httpd_t *httpd);
[79] Fix | Delete
[80] Fix | Delete
void
[81] Fix | Delete
isc_httpd_setfinishhook(void (*fn)(void));
[82] Fix | Delete
[83] Fix | Delete
#endif /* ISC_HTTPD_H */
[84] Fix | Delete
[85] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function