Client sockets without os.fork()
Chris Liechti
cliechti at gmx.net
Fri Jul 5 20:45:40 EDT 2002
"Larry" <ld @ nospam.com> wrote in
news:MDqV8.426072$cQ3.29617 at sccrnsc01:
> When a client connects in unix/linux, I could simply use the os.fork()
> to create a nice new process to deal with the newly requested
> session.
>
> I now have a need to do this in windows. Can anyone relay a fairly
> easy way to put the newly created socket into it's own thread so that
> it can go about doing it's business while the orginal daemon can sit
> and listen for new connections?
have a look at the threading module. that works the same way on win &
linux.
chris
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list