ThreadingTCPServer

Hugo Martires hugomartires at hotmail.com
Fri Jan 25 12:34:04 EST 2002


How can i make a ThreadingTCPServer using the SocketServer module ?
I have read all the information in the module and i still don't get it.
I also learn how to program threads, but how to use them with SocketServer ?
To start, i was doing this:

#!/usr/bin/env python2

from SocketServer import *
import threading

HOST=''
PORT=21567
ADDR=(HOST,PORT)
BUFSIZE=1024

def main():
  print "Waiting..."
  s = ThreadingTCPServer(ThreadingMixIn, TCPServer)

what should i do ???


Tanks !!!



More information about the Python-list mailing list