Example #1
0
extern "C" void UserMain( void * pd )
{
    initWithWeb();

    iprintf("Application: %s\r\nNNDK Revision: %s\r\n",AppName,GetReleaseTag());

    if ( EnableMultiPartForms( MAX_FILE_SIZE ) )
    {
        iprintf("Allocated %ld bytes of memory for MultiPart Forms\r\n",(DWORD)MAX_FILE_SIZE );
        iprintf("Maximum file path length: %d\r\n", (WORD)MAX_PATH_LEN );
        SetNewPostHandler( MyDoPost );
    }
    else
    {
        iprintf( "Could not allocate MultiPart Form memory\r\n" );
    }

    while (1)
    {
        OSTimeDly(TICKS_PER_SECOND);
    }
}
Example #2
0
/* Name: RegisterPost
 * Description: The default Post Request handler is empty. We need to insert
 * our app specific handler in its place.
 * Inputs: None
 * Outputs: None
 */
void RegisterPost()
{
	SetNewPostHandler( MyDoPost );
}