NetBurner 3.5.8
PDF Version
Toggle main menu visibility
init.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
8
13
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
41
void
init
();
42
54
void
StartHttp
(uint16_t port = 80);
55
69
void
StartHttps
(uint16_t ssl_port = 443, uint16_t http_port = 80);
70
71
86
87
struct
listen_list_item
88
{
89
int
fd_listen;
90
bool
bUseTls;
91
};
92
93
98
void
SetHttpsPointers
();
99
111
void
StartHttpCustom
(
listen_list_item
* pList_Of_Listens);
112
113
114
115
126
bool
WaitForActiveNetwork
(uint32_t ticks_to_wait = 120 *
TICKS_PER_SECOND
,
int
interface = -1);
127
128
136
void
EnableSystemDiagnostics
();
137
138
139
140
141
#ifdef NB_SSL_SUPPORTED
156
void
EnableSecureConfigServer
(
bool
bSec_Only);
157
#endif
/* #ifdef NB_SSL_SUPPORTED */
158
#endif
159
TICKS_PER_SECOND
#define TICKS_PER_SECOND
System clock ticks per second.
Definition
constants.h:49
init
void init()
System initialization. Ideally called at the beginning of all applications, since the easiest Recover...
SetHttpsPointers
void SetHttpsPointers()
If you are both using the Start Custom below and using https you must call this.
StartHttps
void StartHttps(uint16_t ssl_port=443, uint16_t http_port=80)
Start the HTTPS secure web server.
EnableSystemDiagnostics
void EnableSystemDiagnostics()
Turn on the diagnostic reports from the config page.
WaitForActiveNetwork
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.
EnableSecureConfigServer
void EnableSecureConfigServer(bool bSec_Only)
Enable the minimal http config server to operate over TLS.
StartHttpCustom
void StartHttpCustom(listen_list_item *pList_Of_Listens)
Start the HTTP web server witha custom list of listen ports.
StartHttp
void StartHttp(uint16_t port=80)
Start the HTTP web server.
listen_list_item
Structure to use to create custom lists of listening ports and interfaces.
Definition
init.h:88
nbrtos
include
init.h
Generated by
1.18.0