int main(int argc, char **argv) { if (argc != 3) { printf("Usage: %s <server_implementation> <port>\n", argv[0]); printf("Server implementation options: \nthread \npolling_aio \npolling_read \nselect\n"); return -1; } port = atoi(argv[2]); if (strcmp(argv[1], "thread") == 0) { thread_impl(); } else if (strcmp(argv[1], "polling_aio") == 0) { polling_impl_aio(); } else if (strcmp(argv[1], "polling_read") == 0) { polling_impl_read(); } else { select_impl(); } return 0; }
void item<Traits>::select(const bool switch_selection_style) { select_impl(switch_selection_style); }