FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rawhttps/src/server.h at master · felipeek/rawhttps · GitHub
felipeek
/
rawhttps
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
rawhttps
/
src
/
server.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (16 loc) · 652 Bytes
Breadcrumbs
rawhttps
/
src
/
server.h
Copy path
File metadata and controls
18 lines (16 loc) · 652 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef
RAWHTTPS_SERVER_H
#define
RAWHTTPS_SERVER_H
#include
"http/http_handler_tree.h"
typedef
struct
{
int
sockfd
;
int
port
;
int
initialized
;
rawhttps_handler_tree
handlers
;
rawhttps_rsa_certificate
certificate
;
rawhttps_private_key
private_key
;
}
rawhttps_server
;
int
rawhttps_server_init
(
rawhttps_server
*
server
,
int
port
,
const
char
*
certificate_path
,
const
char
*
private_key_path
);
int
rawhttps_server_destroy
(
rawhttps_server
*
server
);
int
rawhttps_server_register_handle
(
rawhttps_server
*
server
,
const
char
*
pattern
,
long long
pattern_size
,
rawhttps_server_handle_func
handle
);
int
rawhttps_server_listen
(
rawhttps_server
*
server
);
#endif
Back
|
FazBrowse Home
|
New Git URL