def handle_accept(self, sock, addr): collector = asynchia.ee.FileCollector(byte_std(sys.stdout), False, True) asynchia.ee.Handler( asynchia.SocketTransport( self.transport.socket_map, sock ), collector)
def handle_read(self): read = self.transport.recv(4096) byte_std(sys.stdout).write(read) byte_std(sys.stdout).flush()