/* * File: Main.cpp * Author: John A. Torres * * Created on October 7, 2017, 4:27 PM */ #include #include "FEPSim.h" using namespace std; /** * Main driver for FEP Simulator. Creates a socket server that reads Highway * Status from the ATMS Driver over the socket, in XML form. Runs persistently. * * @param argc argument count * @param argv args * @return */ int main(int argc, char *argv[]) { if(argc != 5) { cerr << "Usage: FEPSim " "" << endl; exit(1); } char *FEPSimHost = argv[1]; int fep_prog = atoi(argv[2]); int fep_rev = atoi(argv[3]); int portno = atoi(argv[4]); cout << "Running FEP Simulator..." << endl; FEPSim fep = FEPSim(FEPSimHost, fep_prog, fep_rev, portno); fep.runSockServer(); return 0; }