/** * File: Main.cpp * * Main driver for FEP Simulator. Creates an FEPSimulator that reads Highway * Status from the ATMS Driver over a socket. Runs persistently. * * @author John A. Torres */ #include #include "FEPSim.h" using namespace std; int main(int argc, char *argv[]) { // if argument count is not correct, display usage message if(argc != 5) { cerr << "Usage: FEPSim " "" << endl; exit(1); } // get the FEP Sim command line arguments char *FEPSimHost = argv[1]; int fep_prog = atoi(argv[2]); int fep_rev = atoi(argv[3]); int portno = atoi(argv[4]); // run the FEPSim cout << "Running FEP Simulator..." << endl; FEPSim fep = FEPSim(FEPSimHost, fep_prog, fep_rev, portno); fep.runSockServer(); return 0; }