On 06/06/2012 22:12, Diego Uribe Gamez wrote: > 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)| > 'buf' is the size of the buffer. 'recvfrom' reads at most 'buf' bytes ('bufsize' would be a better name) and returns them as the bytestring 'data'. -- http://mail.python.org/mailman/listinfo/python-list