예제 #1
0
파일: pwrmount.py 프로젝트: rep/pwrfs
	def _close(self, e):
		print '_close', e
		self._closed = True
		self.read_watcher.stop()
		print 'unmounting...'
		self._unmount()
		print 'unlooping...'
		unloop()
예제 #2
0
 def _close(self, e):
     print '_close', e
     self._closed = True
     self.read_watcher.stop()
     print 'unmounting...'
     self._unmount()
     print 'unlooping...'
     unloop()
예제 #3
0
파일: client.py 프로젝트: rep/pwrcall
def printresult(res, a, b):
    global c
    if res != a + b:
        print 'error, res!= a+b', res, a + b
        n.shutdown()
        unloop()

    c += 1
    ctime = time.time()

    if c % 1000 == 0:
        print int(ctime * 1000), c

    if ctime - starttime < 60.0:
        startcall()
    else:
        print int(ctime * 1000), c
        n.shutdown()
        unloop()
예제 #4
0
파일: client.py 프로젝트: rep/pwrcall
def printresult(res, a,b):
	global c
	if res != a+b:
		print 'error, res!= a+b', res, a+b
		n.shutdown()
		unloop()

	c += 1
	ctime = time.time()

	if c % 1000 == 0:
		print int(ctime*1000), c
	
	if ctime - starttime < 60.0:
		startcall()
	else:
		print int(ctime*1000), c
		n.shutdown()
		unloop()
예제 #5
0
파일: mathcli.py 프로젝트: rep/pwrcall
def printexception(r):
	print 'exc:', r
	n.shutdown()
	unloop()
예제 #6
0
파일: mathcli.py 프로젝트: rep/pwrcall
def printresult(result):
	print 'printresult:', result
	n.shutdown()
	unloop()
예제 #7
0
파일: mathcli.py 프로젝트: rep/pwrcall
def printresult(result):
    print "printresult:", result
    n.shutdown()
    unloop()
예제 #8
0
파일: mathcli.py 프로젝트: rep/pwrcall
def printexception(r):
    print "exc:", r
    n.shutdown()
    unloop()
예제 #9
0
파일: giftcli.py 프로젝트: rep/pwrcall
def printexception(r, msg):
	print 'exc', msg, ':', r
	n.shutdown()
	unloop()
예제 #10
0
파일: instashare.py 프로젝트: rep/pwrcall
 def prexcept(e):
     print 'Error:', e
     n.shutdown()
     unloop()
예제 #11
0
파일: instashare.py 프로젝트: rep/pwrcall
		def master_exc(r):
			print 'Exception on Instamaster promise:', e
			unloop()
예제 #12
0
파일: instashare.py 프로젝트: rep/pwrcall
			def prexcept(e):
				print 'Error:', e
				n.shutdown()
				unloop()
예제 #13
0
파일: instashare.py 프로젝트: rep/pwrcall
			def donecb(r):
				print 'done:', r
				n.shutdown()
				unloop()
예제 #14
0
파일: giftcli.py 프로젝트: rep/pwrcall
def printexception(r, msg):
    print 'exc', msg, ':', r
    n.shutdown()
    unloop()
예제 #15
0
파일: cli.py 프로젝트: rep/pwrcall
def close(r=None):
	n.shutdown()
	unloop()
예제 #16
0
파일: cli.py 프로젝트: rep/pwrcall
def printexception(r):
	print 'exc:', r
	n.shutdown()
	unloop()
예제 #17
0
파일: cli.py 프로젝트: rep/pwrcall
def close(r=None):
    n.shutdown()
    unloop()
예제 #18
0
파일: instashare.py 프로젝트: rep/pwrcall
 def donecb(r):
     print 'done:', r
     n.shutdown()
     unloop()
예제 #19
0
파일: pwrweb.py 프로젝트: rep/pwrcall
 def _lclose(self, e):
     logging.critical('Listener closed ({0}). Exiting.'.format(e))
     unloop()
예제 #20
0
파일: instashare.py 프로젝트: rep/pwrcall
 def master_exc(r):
     print 'Exception on Instamaster promise:', e
     unloop()
예제 #21
0
파일: pwrweb.py 프로젝트: rep/pwrcall
	def _lclose(self, e):
		logging.critical('Listener closed ({0}). Exiting.'.format(e))
		unloop()