Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. PARTICIONAMIENTO = 8192
  2.  
  3. def leerDatos(entrada):
  4.     while True:
  5.         datos = entrada.recv(PARTICIONAMIENTO)
  6.  
  7.         if datos == b'':
  8.             break
  9.  
  10.         # realizar procesamiento con los datos leĆ­dos