[so] Tema 5 linux dimenisune maxima buffere send recv

Cosmin Ratiu cosminratiu at gmail.com
Fri Aug 22 01:21:08 EEST 2008


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080822/27dbc8c4/attachment.html 


More information about the so mailing list