Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-server
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-server
Commits
e2902a5c
Commit
e2902a5c
authored
5 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Cosmetic fixes
parent
bc2eeb22
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
enc_server/dap_enc_http.c
+1
-1
1 addition, 1 deletion
enc_server/dap_enc_http.c
http_server/dap_http.h
+26
-25
26 additions, 25 deletions
http_server/dap_http.h
http_server/dap_http_simple.c
+4
-1
4 additions, 1 deletion
http_server/dap_http_simple.c
with
31 additions
and
27 deletions
enc_server/dap_enc_http.c
+
1
−
1
View file @
e2902a5c
...
...
@@ -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
,
1
40000
,
enc_http_proc
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
http_server/dap_http.h
+
26
−
25
View file @
e2902a5c
/*
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
This diff is collapsed.
Click to expand it.
http_server/dap_http_simple.c
+
4
−
1
View file @
e2902a5c
...
...
@@ -3,7 +3,7 @@
* Dmitrii Gerasimov <naeper@demlabs.net>
* DeM Labs Inc. https://demlabs.net
* Cellframe https://cellframe.net
* Copyright (c) 2017-20
19
* Copyright (c) 2017-20
20
* 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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment