<div dir="ltr">Da, nu intelesesem asta, credeam ca le completeaza el pe amandoua.<br>Mege acum :D, multumesc!<br><br><div class="gmail_quote">2008/8/22 Cosmin Ratiu <span dir="ltr"><<a href="mailto:cosminratiu@gmail.com">cosminratiu@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Eroarea este probabil ca len nu contine sizeof(size) inainte de apel.<br><br>
Citeste cu atentie pagina de manual de la getsockopt.<br><br>Cosmin.<br><br><div class="gmail_quote">2008/8/21 Aurelian Bogdan <span dir="ltr"><<a href="mailto:aurelian.bogdan@gmail.com" target="_blank">aurelian.bogdan@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><div dir="ltr">As fi vrut sa gasesc dimendiunea maxima la bufferele de send/recv.<br>
Am incercat asa:<br>
getsockopt(sockfd, SOL_SOCKET, SO_SNDBUF, &size, (socklen_t *)&len);<br> size si len sunt int.<br>Imi da errno==22, ceea ce la pagina de manual a getsockopt() inseamna <br>
"<pre>[EINVAL] The option is invalid at the level indicated.</pre>"<br>Level este SOL_SOCKET, option este SO_SNDBUF. Am gasit ca se poate asa cum am pus:<br><a href="http://homepages.cwi.nl/%7Eaeb/linux/man2html/man7/socket.7.html" target="_blank">http://homepages.cwi.nl/~aeb/linux/man2html/man7/socket.7.html</a><br>
<br>Deci, de unde ar aprea eroarea asta??<br><br>Multumesc!<br></div>
<br></div></div>_______________________________________________<br>
so mailing list<br>
<a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br>
<a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
so mailing list<br>
<a href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br>
<a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></blockquote></div><br></div>