/****************************************** * RandomQuotes_Iterative_UDP_TLI_Server.cpp * Auto-generated by Cliser, Fri Jul 28 15:07:18 EDT 2000 * except for the body of method: * RandomQuotes_Iterative_UDP_TLI_Server::run() * * See http://cs.calvin.edu/~cliser/ for more details. */ #include "UDP_Server_TLI_Communicator.h" #include "IterativeServer.h" class RandomQuotes_Iterative_UDP_TLI_Server : public IterativeServer { public: RandomQuotes_Iterative_UDP_TLI_Server(const unsigned short port); void interactWithClient(); }; void RandomQuotes_Iterative_UDP_TLI_Server::interactWithClient() { // replace these comments with statements // that define your server's behavior } RandomQuotes_Iterative_UDP_TLI_Server::RandomQuotes_Iterative_UDP_TLI_Server(const unsigned short port) : IterativeServer("RandomQuotes", port) { // optional: // replace these comments with statements // that initialize your server } int main(int argc, char** argv) { unsigned short port = 9876; switch(argc) { default: cerr << "Usage: " << argv[0] << " []" << endl; return -1; case 2: port = (unsigned short)atoi(argv[1]); /* fall through */ case 1: RandomQuotes_Iterative_UDP_TLI_Server myServer(port); myServer.run(); } return 0; }