How to manage two (different) sockets without using threads?

Fredrik Lundh fredrik at pythonware.com
Wed Dec 13 13:54:26 EST 2006


billie wrote:

> I'm succesfully managing command channel through asynchat framework,
> but I'm not sure about how to manage data channel without using a
> thread/subprocess.

use a separate dispatcher instance for the data transfer.  see the
ftp_handle_pasv_response method and async_ftp_download class in this
article for a start:

     http://effbot.org/zone/asyncore-ftp-client.htm

</F>




More information about the Python-list mailing list