int Thread_Per_Connection_Logging_Server::run(int argc, char *argv[]) { if (this->open(argc > 1 ? atoi(argv[1]) : 0) == -1) return -1; for (;;) { if (wait_for_multiple_events() == -1) return -1; if (handle_connections() == -1) return -1; } return 0; }
int ChatServer::run() { if (this->open()) return EXIT_FAILURE; for (;;) { if (wait_for_multiple_events() == EXIT_FAILURE) return EXIT_FAILURE; if (handle_connections() == EXIT_FAILURE) return EXIT_FAILURE; } ACE_NOTREACHED( return 0; ) }
int Logging_Server::run (int argc, char *argv[]) { if (open (argc > 1 ? atoi (argv[1]) : 0) == -1) return -1; for (;;) { if (wait_for_multiple_events () == -1) return -1; if (handle_connections () == -1) return -1; if (handle_data () == -1) return -1; } return 0; }
int Logging_Server::run(int argc, char** argv) { if (-1 == open(argc > 1 ? atoi(argv[1]) : 0)) { return -1; } while(1) { if (-1 == wait_for_multiple_events()) return -1; if (-1 == handle_connections()) return -1; if (-1 == handle_data()) return -1; } return 0; }