void RemoteHandler:: run(){ IOStream* ioStream; for(;;){ char command[256]; int rd = ioStream->readLine(c_node.command_fd, command, 256); if (rd >0) dispatch(command); else { cout << "client closed" << endl; exit(0); } } }