[Spread-users] GROUPS_TOO_SHORT || BUFFER_TOO_SHORT

Koorosh Alahiari koorosh at 7cis.com
Mon Mar 18 04:54:40 EST 2002


Hi All,

Could anyone tell me what the following code segment
in user.c mean?

Why does it call another receive with the service type
of "DROP_RECV" in this case?

Thanks - Koorosh

ret = SP_receive( Mbox, &service_type, sender, 100, &num_groups,
target_groups,
                &mess_type, &endian_mismatch, sizeof(mess), mess );
if( ret < 0 )
       {
        if ( (ret == GROUPS_TOO_SHORT) || (ret == BUFFER_TOO_SHORT) ) {
             service_type = DROP_RECV;
             printf("\n========Buffers or Groups too Short=======\n");
            ret = SP_receive( Mbox, &service_type, sender, 100, &num_groups,
target_groups,&mess_type, &endian_mismatch, sizeof(mess), mess );
            }
        }







More information about the Spread-users mailing list