<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">att.mq_flags = 0;<br>att.mq_maxmsg = 10;<br>att.mq_msgsize = sizeof(Command);<br>att.mq_curmsgs = 0;<br><br>Eroarea apare aici:<br><br>rez = mq_receive(q_gateway, (char*)&c, sizeof(Command), &prio);<br> <br> if(rez==-1)<br> {<br> printf("Eroare primire comanda\n");<br> }<br><br><div> </div>Alex<div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Lungu Adrian <lungu_a_ro@yahoo.com><br><b><span
style="font-weight: bold;">To:</span></b> so@cursuri.cs.pub.ro<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, April 7, 2011 2:25:02 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [so] [tema2][linux]problema sincronizare client-gateway<br></font><br>
Alex Gorunescu <algorunescu@...> writes:<br><br>> <br>> <br>> Exact asa o si deschid. Si face ce trebuie. Daca exista o deschide. Problema<br>este ca daca o deschide pe cea creata la client imi da eroare la receive. Alex<br><br><br> Nu stiu ce sa zic ... eu n-am avut nici o problema la receive. Ce atribute<br>i-ai setat ultimului parametru de la mq_open ? Sau macar posteaza eroarea<br>care-ti apare .. <br><br> O zi buna,<br> Adrian.<br><br><br><br><br>_______________________________________________<br><span><a target="_blank" href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a></span></div></div>
</div></body></html>