#include #include #include "../shared/GlobalConfigFile.h" #include "ClientInteractiveTest.h" /* this is how we test receiving data from the market data proxy server. */ int main(int argc, char **argv) { setlocale(LC_ALL, ""); addConfigItems("market_data_proxy_address=127.0.0.1:1977"); addConfigItems("log_file_suffix=client"); if (!addConfigItemsFromCommandLine(argv + 1)) return 1; configItemsComplete(); clientInteractiveTest(); // Calling exit() or just returning from main() would cause serious problems. // Basically there's no way to nicely shut down all the threads that are // interacting with each other. Many destructors call assert(false) and // don't even try to do any cleanup. _exit() avoids the normal C++ cleanup // and tells the O/S to kill the process immediately. _exit(0); }