NetBurner 3.5.6
PDF Version
init.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
14#ifndef _INIT_H
15#define _INIT_H
16
17// NB Definitions
18#include <predef.h>
19
20// NB Constants
21#include <constants.h>
22
23// NB Libs
24#include <basictypes.h>
25#include <ctype.h>
26#include <stdio.h>
27
41void init();
42
54void StartHttp(uint16_t port = 80);
55
69void StartHttps(uint16_t ssl_port = 443, uint16_t http_port = 80);
70
71
88{
89int fd_listen;
90bool bUseTls;
91};
92
93
99
111void StartHttpCustom(listen_list_item * pList_Of_Listens);
112
113
114
115
126bool WaitForActiveNetwork(uint32_t ticks_to_wait = 120 * TICKS_PER_SECOND, int interface = -1);
127
128
137
138
139
140
141#ifdef NB_SSL_SUPPORTED
156void EnableSecureConfigServer(bool bSec_Only);
157#endif /* #ifdef NB_SSL_SUPPORTED */
158#endif
159
#define TICKS_PER_SECOND
System clock ticks per second.
Definition constants.h:49
void init()
System initialization. Ideally called at the beginning of all applications, since the easiest Recover...
void SetHttpsPointers()
If you are both using the Start Custom below and using https you must call this.
void StartHttps(uint16_t ssl_port=443, uint16_t http_port=80)
Start the HTTPS secure web server.
void EnableSystemDiagnostics()
Turn on the diagnostic reports from the config page.
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.
void EnableSecureConfigServer(bool bSec_Only)
Enable the minimal http config server to operate over TLS.
void StartHttpCustom(listen_list_item *pList_Of_Listens)
Start the HTTP web server witha custom list of listen ports.
void StartHttp(uint16_t port=80)
Start the HTTP web server.
Structure to use to create custom lists of listentiing ports and interfaces.
Definition init.h:88