[so] [tema2][linux]problema sincronizare client-gateway
Drutu Bogdan
bogdandrutu at gmail.com
Thu Apr 7 16:03:34 EEST 2011
2011/4/7 Alex Gorunescu <algorunescu at yahoo.com>:
> 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");
> }
>
cine este c ((char*)&c)?
>
> 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
> _______________________________________________
> http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii
>
--
Bogdan.
More information about the so
mailing list