Exemple #1
0
TInt CHttpServer::ExecuteL()
	{
		// Create and install the active scheduler
		CActiveScheduler* activeScheduler = new (ELeave) CActiveScheduler;
		CleanupStack::PushL(activeScheduler);
		CActiveScheduler::Install(activeScheduler);

		//Initialize Ruby
		RhoRubyStart();
	
		//Send open home event
		SendWindowEvent( ECmdAppHome );
		
#ifdef ENABLE_RUBY_VM_STAT		
		g_httpd_thread_loaded = 1;
#endif		
		
		while ( !iClose )
			{
			shttpd_poll(ctx, 1000);
			}

		RhoRubyStop();

		CleanupStack::PopAndDestroy(activeScheduler);
		
	 	return 0;
	}
Exemple #2
0
int
main(int argc, char **argv)
{
//    MessageBox(0,"","",MB_OK);
    ruby_sysinit(&argc, &argv);

    RhoRubyStart();
    RhoRubyStop();
}