[Python-es] UDPSock.recvfrom(buf) ??????? (buf) ???

mauricio rodriguez rodriguez.mauricio55 en gmail.com
Jue Jun 7 15:45:16 CEST 2012


es la cantidad de datos que recibe o envía de un tirón ... no la totalidad
del trafico sino el tamaño del paquete

2012/6/7 Diego Uribe Gamez <diego.uribe.gamez en gmail.com>

> Estoy mirando una conexión por Soket y no logro entender que hace el buf?
> que es lo que cambia? el numero que se le asigna es que?
>
> host = "localhost"
>
>
>
>
> port = 21567
>
>
>
>
> buf = 1024
>
>
>
>
> data = ''
>
>
>
>
> addr = (host, port)
>
>
>
>
> UDPSock = socket(AF_INET, SOCK_DGRAM)
>
>
> while (1):
>
>
>
>
>   data, addr = UDPSock.recvfrom(buf)
>
>
> --
>  *Diego Alonso Uribe Gamez*
> ------------------------------
>
> *Desarrollador web*
>
> Twitter: @DiegoUG <http://www.twitter.com/DiegoUG>
>
> Google+: http://gplus.to/diegoug
> ------------------------------
>
>
>
> _______________________________________________
> Python-es mailing list
> Python-es en python.org
> http://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20120607/6cb027d9/attachment.html>


Más información sobre la lista de distribución Python-es