Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created June 27, 2018 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/04470e9860833211d9a7f49ba67b4493 to your computer and use it in GitHub Desktop.
Save Fhernd/04470e9860833211d9a7f49ba67b4493 to your computer and use it in GitHub Desktop.
Procesamiento de datos con while infinito. OrtizOL.
PARTICIONAMIENTO = 8192
def leerDatos(entrada):
while True:
datos = entrada.recv(PARTICIONAMIENTO)
if datos == b'':
break
# realizar procesamiento con los datos leídos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment