NetBurner 3.1
init.h
Go to the documentation of this file.
1 /*NB_REVISION*/
2 
3 /*NB_COPYRIGHT*/
4 
13 #ifndef _INIT_H
14 #define _INIT_H
15 
16 // NB Definitions
17 #include <predef.h>
18 
19 // NB Constants
20 #include <constants.h>
21 
22 // NB Libs
23 #include <basictypes.h>
24 #include <ctype.h>
25 #include <stdio.h>
26 
41 void init();
42 
57 void StartHttp(uint16_t port = 80);
58 
75 void StartHttps(uint16_t ssl_port = 443, uint16_t http_port = 80);
76 
89 bool WaitForActiveNetwork(uint32_t ticks_to_wait = 120 * TICKS_PER_SECOND, int interface = -1);
90 
91 #ifdef NB_SSL_SUPPORTED
92 
108 void EnableSecureConfigServer(bool bHSTS);
109 #endif /* #ifdef NB_SSL_SUPPORTED */
110 #endif
void init()
System initialization. Normally called at the beginning of all applications.
Definition: init.cpp:22
void StartHttps(uint16_t ssl_port=443, uint16_t http_port=80)
Start the HTTPS secure web server.
Definition: https.cpp:311
void StartHttp(uint16_t port=80)
Start the HTTP web server.
Definition: http.cpp:296
bool WaitForActiveNetwork(uint32_t ticks_to_wait=120 *TICKS_PER_SECOND, int interface=-1)
Wait for an active network connection on at least one interface.
Definition: dhcpc.cpp:1549
void EnableSecureConfigServer(bool bHSTS)
Enable the minimal http config server to operate over TLS.