-
Notifications
You must be signed in to change notification settings - Fork 0
Applications
neko_code edited this page Jul 21, 2018
·
11 revisions
This server is extensible into many hot-plug server applications (modules). Itself server has no high level logic.
See the "SampleModule" directory for more examples with use of Nova features.
Here are the main methods which you can use in your application: `
using namespace Neko::Skylar; // the server
using namespace Neko::Net; // lower level utilities
extern "C"
{
/** This is called on early module initialization. */
bool OnApplicationInit(ApplicationInitContext context)
{
// context contains some useful shared server objects which this application can use (e.g. file system, allocator)
}
/** This is called when a requested application has been found. */
int16 OnApplicationRequest(RequestData* request, ResponseData * response)
{ }
/** Called when request has finished. */
void OnApplicationPostRequest(ResponseData * response)
{ }
void OnApplicationExit()
{ };
}`