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

Alex Gorunescu algorunescu at yahoo.com
Thu Apr 7 22:24:49 EEST 2011


Hai ca dupa inca o repriza de injuraturi am rezolvat singur problema. Era una 
simpla ca majoritatea bugurilor scarboase.

before:

rez = mq_receive(q_gateway, (char*)&c, sizeof(Command), &prio);

now:

struct mq_attr attr;
mq_getattr(q_gateway,&attr);
rez = mq_receive(q_gateway, (char*)&c, attr.mq_msgsize, &prio);

Acum merge si cand face clientul coada.

Alex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20110407/628716a4/attachment-0001.htm>


More information about the so mailing list