Skip to content
Snippets Groups Projects
Commit e2902a5c authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] Cosmetic fixes

parent bc2eeb22
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ void enc_http_proc(struct dap_http_simple *cl_st, void * arg)
*/
void enc_http_add_proc(struct dap_http * sh, const char * url)
{
dap_http_simple_proc_add(sh,url,40000,enc_http_proc);
dap_http_simple_proc_add(sh,url,140000,enc_http_proc);
}
/**
......
/*
Copyright (c) 2017-2018 (c) Project "DeM Labs Inc" https://github.com/demlabsinc
All rights reserved.
This file is part of DAP (Deus Applications Prototypes) the open source project
DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DAP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with any DAP based project. If not, see <http://www.gnu.org/licenses/>.
* Authors:
* Dmitrii Gerasimov <naeper@demlabs.net>
* DeM Labs Inc. https://demlabs.net
* Cellframe https://cellframe.net
* Copyright (c) 2017-2019
* All rights reserved.
This file is part of DAP the open source project.
DAP is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DAP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
See more details here <http://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef _SERVER_HTTP_H_
#define _SERVER_HTTP_H_
#include "dap_server.h"
#include "dap_client_remote.h"
#include "http_client/dap_http_header.h"
......@@ -60,13 +62,13 @@ typedef struct dap_http {
#define DAP_HTTP(a) ((dap_http_t *) (a)->_inheritor)
extern int dap_http_init( ); // Init module
extern void dap_http_deinit( ); // Deinit module
int dap_http_init( ); // Init module
void dap_http_deinit( ); // Deinit module
extern int dap_http_new( dap_server_t *sh, const char *server_name ); // Create dap_http structure in the internal data field of dap_server_t instance
extern void dap_http_delete( dap_server_t *sh, void *arg ); // Clear dap_http structure in the internal data field of dap_server_t instance
int dap_http_new( dap_server_t *sh, const char *server_name ); // Create dap_http structure in the internal data field of dap_server_t instance
void dap_http_delete( dap_server_t *sh, void *arg ); // Clear dap_http structure in the internal data field of dap_server_t instance
extern void dap_http_add_proc(dap_http_t *sh, const char *url_path, void *internal
void dap_http_add_proc(dap_http_t *sh, const char *url_path, void *internal
,dap_http_client_callback_t new_callback
,dap_http_client_callback_t delete_callback
,dap_http_client_callback_t headers_read_callback
......@@ -75,4 +77,3 @@ extern void dap_http_add_proc(dap_http_t *sh, const char *url_path, void *intern
,dap_http_client_callback_t data_write_callback
,dap_http_client_callback_t error_callback ); // Add custom procesor for the HTTP server
#endif
......@@ -3,7 +3,7 @@
* Dmitrii Gerasimov <naeper@demlabs.net>
* DeM Labs Inc. https://demlabs.net
* Cellframe https://cellframe.net
* Copyright (c) 2017-2019
* Copyright (c) 2017-2020
* All rights reserved.
This file is part of DAP the open source project.
......@@ -40,6 +40,8 @@ See more details here <http://www.gnu.org/licenses/>.
#include <pthread.h>
#include "utlist.h"
#include "json-c/json.h"
#include "json-c/json_object.h"
#include "dap_common.h"
#include "dap_config.h"
......@@ -49,6 +51,7 @@ See more details here <http://www.gnu.org/licenses/>.
#include "dap_enc_key.h"
#include "dap_http_user_agent.h"
#include "../enc_server/dap_enc_ks.h"
#include "../enc_server/dap_enc_http.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment