[so] [tema2][linux]problema sincronizare client-gateway

Lungu Adrian lungu_a_ro at yahoo.com
Thu Apr 7 16:04:14 EEST 2011


Alex Gorunescu <algorunescu at ...> writes:

> 
> att.mq_flags = 0;att.mq_maxmsg = 10;att.mq_msgsize =
sizeof(Command);att.mq_curmsgs = 0;Eroarea apare aici:rez =
mq_receive(q_gateway, (char*)&c, sizeof(Command), &prio);           
if(rez==-1)        {            printf("Eroare primire comanda\n");        } Alex
> 


    Daca te uiti la ultimul test de linux , de exemplu , pornesc 20 clienti in
paralel ... tu ai setat 10 la nr max de mesaje. Incearca cu 
  att.mq_maxmsg = 100


long mq_curmsgs;     /* # of messages currently in queue */
 p-asta nu cred ca poti tu sa-l setezi



More information about the so mailing list