示例#1
0
 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)
示例#2
0
 def handle_read(self):
     read = self.transport.recv(4096)
     byte_std(sys.stdout).write(read)
     byte_std(sys.stdout).flush()