This is the function GenericMain calls. View its source for some simple boilerplate you can copy/paste and modify, or you can call it yourself from your main.
Please note that this may spawn other helper processes that will call main again. It does this currently for the timer server and event source server (and the quasi-deprecated web socket server).
This is the function GenericMain calls. View its source for some simple boilerplate you can copy/paste and modify, or you can call it yourself from your main.
Please note that this may spawn other helper processes that will call main again. It does this currently for the timer server and event source server (and the quasi-deprecated web socket server).