Beispiel #1
0
    def __init__(self, request, client_address, server):
        # This is the cooked input stream (list of charcodes)
        self.cookedq = []   

        # Create the locks for handing the input/output queues
        self.IQUEUELOCK = threading.Lock()
        self.OQUEUELOCK = threading.Lock()

        # Call the base class init method
        TelnetHandlerBase.__init__(self, request, client_address, server)
Beispiel #2
0
    def __init__(self, request, client_address, server):
        # This is the cooked input stream (list of charcodes)
        self.cookedq = []

        # Create the locks for handing the input/output queues
        self.IQUEUELOCK = threading.Lock()
        self.OQUEUELOCK = threading.Lock()

        # Call the base class init method
        TelnetHandlerBase.__init__(self, request, client_address, server)
Beispiel #3
0
 def __init__(self, request, client_address, server):
     # Create a green queue for input handling
     self.cookedq = gevent.queue.Queue()
     # Call the base class init method
     TelnetHandlerBase.__init__(self, request, client_address, server)
Beispiel #4
0
 def __init__(self, request, client_address, server):
     # Create a green queue for input handling
     self.cookedq = eventlet.queue.Queue()
     # Call the base class init method
     TelnetHandlerBase.__init__(self, request, client_address, server)