[so] Tema 5 linux dimenisune maxima buffere send recv

Aurelian Bogdan aurelian.bogdan at gmail.com
Thu Aug 21 23:34:17 EEST 2008


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

Deci, de unde ar aprea eroarea asta??

Multumesc!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080821/f2a688a9/attachment.htm 


More information about the so mailing list