HTTP-2-lib
h2_structs.hpp
Go to the documentation of this file.
1 // h2_structs.hpp
2 
3 #pragma once
4 #include <openssl/ssl.h>
5 #include <nghttp2/nghttp2.h>
6 #include <unordered_map>
7 #include <string.h>
8 
9 using namespace std;
10 
12 
14  SSL_CTX *ctx;
15  struct event_base *eventBase;
16  unordered_map<string, string> routes;
17 };
18 
20 
22  //struct stream_data root;
23  struct bufferevent *bufferEvent;
25  //h2_session *session;
27  nghttp2_hd_inflater *inflater;
28  nghttp2_hd_deflater *deflater;
29 };
nghttp2_hd_inflater * inflater
Definition: h2_structs.hpp:27
Struct for holding all data for each individual connection and client session.
Definition: h2_structs.hpp:21
char * clientAddress
Definition: h2_structs.hpp:26
struct event_base * eventBase
Definition: h2_structs.hpp:15
Struct for holding the application wide context.
Definition: h2_structs.hpp:13
struct ApplicationContext * appCtx
Definition: h2_structs.hpp:24
nghttp2_hd_deflater * deflater
Definition: h2_structs.hpp:28
SSL_CTX * ctx
Definition: h2_structs.hpp:14
unordered_map< string, string > routes
Definition: h2_structs.hpp:16
struct bufferevent * bufferEvent
Definition: h2_structs.hpp:23