reactor

dvilla en gmx.net dvilla en gmx.net
Vie Ene 30 23:02:48 CET 2004


Hola:

Gracias, ciertamente usar threads parece una buena solución aunque no tengo muy
claro como implementar un hilo para funciones "idle".

De todos modos, he encontrado (aunque aún no he probado) un framework para
creación de servidores que se llama twisted (es paquete Debian) que es una
verdadera pasada. Os pongo un trozo de la descripción:

  Twisted is an event-based framework for internet applications.  It includes a
  web server, a telnet server, a chat server, a news server, a generic client
  and server for remote object access, and APIs for creating new protocols and
  services. Twisted supports integration of the Tk, GTK+, GTK+ 2, Qt, Mac OS X,
  or wxPython event loop with its main event loop. The Win32 event loop
  is also supported. Twisted works with all Python 2.2 and 2.3 versions.
                                                                                
 Twisted currently supports the following protocols, all implemented in pure 
 Python, most of them as both servers and clients:
                                                                                
 SSH, FTP, HTTP, XML-RPC (using xmlrpclib), SOAP (using SOAPpy), NNTP, 
 SOCKSv4 (server only), SIP, Jabber, SMTP, IRC, telnet, POP3, 
 AOL's instant messaging TOC, 
 OSCAR, used by AOL-IM as well as ICQ (client only)
 DNS, MouseMan, finger, 
 Echo, discard, chargen and friends
 Twisted Perspective Broker

Ya os contaré.

Saludos.

El Fri, 30 Jan 2004 12:41:19 +0100
Marcos Sánchez Provencio <rapto en arrakis.es> escribió:

> En las versiones recientes está threading.Timer
> http://www.python.org/doc/current/lib/timer-objects.html
> ¿te vale eso?
> 
> dvilla en inf-cr.uclm.es escribió:
> > Hola:
> > 
> > Necesito algún modulillo que implemente un reactor sencillito. Estoy
> > utilizando GTK en plan:
> > 
> > gtk.add_idle(handler1)
> > gtk.add_timeout(10, handler2)
> > gtk.main()
> > 
> > Pero me parece un poco fuerte usar GTK sólo para esto. Si alguien conoce
> > algo(de la librería estandar preferentemente) para hacer lo mismo que me lo
> > cuente por favor.
> > 
> > Gracias.
> > 
> 
> 
> _______________________________________________
> Python-es mailing list
> Python-es en aditel.org
> http://listas.aditel.org/listinfo/python-es
> 




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