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