NetBurner 3.5.0
PDF Version
 
init.h
Go to the documentation of this file.
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
81bool WaitForActiveNetwork(uint32_t ticks_to_wait = 120 * TICKS_PER_SECOND, int interface = -1);
82
83
92
93
94
95
96#ifdef NB_SSL_SUPPORTED
111void EnableSecureConfigServer(bool bSec_Only);
112#endif /* #ifdef NB_SSL_SUPPORTED */
113#endif
114
#define TICKS_PER_SECOND
System clock ticks per second.
Definition nbrtos/include/constants.h:41
void init()
System initialization. Ideally called at the beginning of all applications, since the easiest Recover...
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 StartHttp(uint16_t port=80)
Start the HTTP web server.
NetBurner System Constants.