Ejemplo n.º 1
0
int main(int argc, char **argv)
{
    ape_global *ape;

    printf("    _    ____  _____   ____    ___  \n");
    printf("   / \\  |  _ \\| ____| |___ \\  / _ \\ \n");
    printf("  / _ \\ | |_) |  _|     __) || | | |\n");
    printf(" / ___ \\|  __/| |___   / __/ | |_| |\n");
    printf("/_/   \\_\\_|   |_____| |_____(_)___/ \n\t   Async Push Engine (%s)\n\n", __REV);
    printf("Build   : %s %s\n", __DATE__, __TIME__);
    printf("Author  : Anthony Catel ([email protected])\n\n");

    if ((ape = ape_init()) == NULL) {
        printf("Failed to initialize APE\n");
        exit(1);
    }

    ape_load_modules(ape);

    events_loop(ape);

    return 0;
}
Ejemplo n.º 2
0
int main(int argc, char **argv)
{
    ape_global *ape;

    printf("    _    ____  _____   ____    ___  \n");
    printf("   / \\  |  _ \\| ____| |___ \\  / _ \\ \n");
    printf("  / _ \\ | |_) |  _|     __) || | | |\n");
    printf(" / ___ \\|  __/| |___   / __/ | |_| |\n");
    printf("/_/   \\_\\_|   |_____| |_____(_)___/ \n\t   Async Push Engine (%s)\n\n", __REV);
    printf("Build   : %s %s\n", __DATE__, __TIME__);
    printf("Author  : Anthony Catel ([email protected])\n\n");

    if ((ape = ape_init()) == NULL) {
        printf("Failed to initialize APE\n");
        exit(1);
    }

    ape_load_modules(ape);

    /*printf("ape addr : %p\n", ape);

    ape_add_property(ape->extend, "foo", ape);

    printf("Get addr %p\n", ape_get_property(ape->extend, "foo", 3));*/
    
    printf("rand : %s\n", ape_rand_64_base64());
    
    APE_pipe_new(ape);
    
    ape_running = 1;
    events_loop(ape);
    
    ape_unload_modules(ape);

    return 0;
}