Bind threads to addresses -- Windows & urllib?

Guyon Morée gumuz at
Thu Sep 5 00:33:56 CEST 2002

i think you mean something like this:

import thread

def spiderStuff(Socket):
    # do the spider stuff here


thread.start_new_thread(SpiderStuff, (,newSocket))

"Nick Arnett" <narnett at> wrote in message
news:mailman.1031157680.4128.python-list at
> I can't see an obvious easy way to bind threads to IP addresses on a Win2K
> machine.  I have a multi-threaded Web spider, which uses urllib to
> pages, and would like to bind each thread to a different address on the
> machine, if possible.  Alternatively, I'd be willing to run separate
> processes to accomplish the same.  So far, my searches aren't coming up
> any solution... And it would be wonderful if such an approach were also
> portable to Linux...  Pointers?
> --
> Nick Arnett
> Phone/fax: (408) 904-7198
> narnett at

More information about the Python-list mailing list