コード例 #1
0
def update():
    getDesktop().draw()
    getDesktop().update()

    r, w, e = Network.multiplex()
    for sock in r:
        try:
            sock.handleInput()
        except Exception, exc:
            print "Unhandled exception:", exc
コード例 #2
0
ファイル: Core.py プロジェクト: BackupTheBerlios/street-svn
def update():
	getDesktop().draw()
	getDesktop().update()
	
	r, w, e = Network.multiplex()
	for sock in r:
		try:
			sock.handleInput()
		except Exception, exc:
			print "Unhandled exception:", exc
コード例 #3
0
ファイル: Core.py プロジェクト: BackupTheBerlios/street-svn
def run():
    while running:
        r, w, e = Network.multiplex(1)
        for sock in r:
            try:
                sock.handleInput()
            except Exception, exc:
                if (exc.__class__ != 'socket.error'):
                    print "Unhandled exception:", exc
        for sock in w:
            sock.handleOutput()
        for sock in e:
            sock.close()
コード例 #4
0
ファイル: Core.py プロジェクト: BackupTheBerlios/street-svn
def run():
    while running:
        r, w, e = Network.multiplex(1)
        for sock in r:
            try:
                sock.handleInput()
            except Exception, exc:
                if exc.__class__ != "socket.error":
                    print "Unhandled exception:", exc
        for sock in w:
            sock.handleOutput()
        for sock in e:
            sock.close()