Exemple #1
0
    def __init__(self, src, dst, conn):
        self.src, self.dst = src, dst
        self.conn = conn
        self.done = False
        self.p = Promise()
        self.count = 0
        self.burst = True

        conn.conn._on('writable', self.copy)
        conn.conn._on('close', self.closed)
        schedule(self.copy)
Exemple #2
0
	def __init__(self, src, dst, conn):
		self.src, self.dst = src, dst
		self.conn = conn
		self.done = False
		self.p = Promise()
		self.count = 0
		self.burst = True

		conn.conn._on('writable', self.copy)
		conn.conn._on('close', self.closed)
		schedule(self.copy)
Exemple #3
0
 def copyagain(self, r):
     self.burst = True
     schedule(self.copy)
Exemple #4
0
	def copyagain(self, r):
		self.burst = True
		schedule(self.copy)