示例#1
0
    def __init__(self, socket):
        TimeOut.__init__(self)
        self.to_send = None
        self.socket = socket

        # create a PriorityQueue for packets
        self.queue = PriorityQueue()
示例#2
0
 def __init__(self, socket):
     TimeOut.__init__(self)
     self.socket = socket
     # create a PriorityQueue for each rate class
     self.queues = [
         PriorityQueue() for __ in xrange(len(socket.rate_classes))
     ]
示例#3
0
    def __init__(self, socket):
        TimeOut.__init__(self)
        self.to_send = None
        self.socket = socket

        # create a PriorityQueue for packets
        self.queue = PriorityQueue()
示例#4
0
 def __init__(self, socket):
     TimeOut.__init__(self)
     self.socket = socket
     # create a PriorityQueue for each rate class
     self.queues = [PriorityQueue()
                    for __ in xrange(len(socket.rate_classes))]
示例#5
0
 def __init__(self, seconds, func, *a, **k):
     self.seconds = seconds
     self.func = func
     self.a = a
     self.k = k
     TimeOut.__init__(self)
示例#6
0
 def __init__(self, seconds, func, *a, **k):
     self.seconds = seconds
     self.func = func
     self.a = a
     self.k = k
     TimeOut.__init__(self)