Esempio n. 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)
Esempio n. 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)
Esempio n. 3
0
 def copyagain(self, r):
     self.burst = True
     schedule(self.copy)
Esempio n. 4
0
	def copyagain(self, r):
		self.burst = True
		schedule(self.copy)