Ejemplo n.º 1
0
/* 
Executed periodically at each member. Called from app.c.
*/
void nodeloop(member *node){
    if (node->bfailed) return;

    checkmsgs(node);
    printf("\n<<<<<<<<   CHECK MESSAGE DONE ");

    /* Wait until you're in the group... */
    if(!node->ingroup) return ;

    /* ...then jump in and share your responsibilites! */
    nodeloopops(node);
    
    return;
}
Ejemplo n.º 2
0
/* 
Executed periodically at each member. Called from app.c.
*/
void nodeloop(member *node){

printf("\nNODELOOP CALLED FOR %d",node->nodenumber);
    static char s[1024];
    //printf("ENTEREED NODELOOPOPS called for %d <-Address \n",node->addr);

    if (node->bfailed) return;


    checkmsgs(node);

    /* Wait until you're in the group... */
    if(!node->ingroup) return ;

    /* ...then jump in and share your responsibilites! */
   // sprintf(s, "BEFORE NODELOOPOPS called for ");
     LOG(&node->addr, s); // always passing first one address ?
    nodeloopops(node);
    
    return;
}