Skip to content

Applications

neko_code edited this page Jul 10, 2018 · 11 revisions

This server is extensible into many hot-plug server applications (modules). Itself server has no high level logic.

put an example there

Here are the main methods which you can use in your application: ` using namespace Neko::Http; // http server using namespace Neko::Net::Http; // the main framework network code

extern "C" { /** * This is called on early module initialization. */ bool OnApplicationInit(ApplicationInitDesc desc) { }

/**
 * This is called when a requested application has been found.
 */
int OnApplicationRequest(RequestData* request, ResponseData * response)
{
}

/**
 * Called when request has finished.
 */
void OnApplicationPostRequest(ResponseData * response)
{
}

void OnApplicationExit()
{
};

}`

Clone this wiki locally