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

Alex Gorunescu algorunescu at yahoo.com
Thu Apr 7 15:53:22 EEST 2011


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




________________________________
From: Lungu Adrian <lungu_a_ro at yahoo.com>
To: so at cursuri.cs.pub.ro
Sent: Thu, April 7, 2011 2:25:02 PM
Subject: Re: [so] [tema2][linux]problema sincronizare client-gateway

Alex Gorunescu <algorunescu at ...> writes:

> 
> 
> Exact asa o si deschid. Si face ce trebuie. Daca exista o deschide. Problema
este ca daca o deschide pe cea creata la client imi da eroare la receive. Alex


   Nu stiu ce sa zic ... eu n-am avut nici o problema la receive. Ce atribute
i-ai setat ultimului parametru de la mq_open ? Sau macar posteaza eroarea
care-ti apare .. 

     O zi buna,
        Adrian.




_______________________________________________
http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20110407/9fa47b1b/attachment-0001.htm>


More information about the so mailing list