[so] Tema 5 linux dimenisune maxima buffere send recv

Aurelian Bogdan aurelian.bogdan at gmail.com
Fri Aug 22 10:06:16 EEST 2008


Da, nu intelesesem asta, credeam ca le completeaza el pe amandoua.
Mege acum :D, multumesc!

2008/8/22 Cosmin Ratiu <cosminratiu at gmail.com>

> Eroarea este probabil ca len nu contine sizeof(size) inainte de apel.
>
> Citeste cu atentie pagina de manual de la getsockopt.
>
> Cosmin.
>
> 2008/8/21 Aurelian Bogdan <aurelian.bogdan at gmail.com>
>
>> As fi vrut sa gasesc dimendiunea maxima la bufferele de send/recv.
>> Am incercat asa:
>>        getsockopt(sockfd, SOL_SOCKET, SO_SNDBUF, &size, (socklen_t
>> *)&len);
>>  size si len sunt int.
>> Imi da errno==22, ceea ce la pagina de manual a getsockopt() inseamna
>> "
>>
>> [EINVAL]           The option is invalid at the level indicated.
>>
>> "
>> Level este SOL_SOCKET, option este SO_SNDBUF. Am gasit ca se poate asa cum
>> am pus:
>> http://homepages.cwi.nl/~aeb/linux/man2html/man7/socket.7.html<http://homepages.cwi.nl/%7Eaeb/linux/man2html/man7/socket.7.html>
>>
>> Deci, de unde ar aprea eroarea asta??
>>
>> Multumesc!
>>
>> _______________________________________________
>> so mailing list
>> so at cursuri.cs.pub.ro
>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>>
>>
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080822/cc6b05a8/attachment.html 


More information about the so mailing list