Bind threads to addresses -- Windows & urllib?
Guyon Morée
gumuz at looze.net
Wed Sep 4 18:33:56 EDT 2002
i think you mean something like this:
import thread
def spiderStuff(Socket):
# do the spider stuff here
pass
...
thread.start_new_thread(SpiderStuff, (,newSocket))
"Nick Arnett" <narnett at mccmedia.com> wrote in message
news:mailman.1031157680.4128.python-list at python.org...
> 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
retrieve
> 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
with
> 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 mccmedia.com
>
>
>
More information about the Python-list
mailing list