continues work on program options, updates makefiles for examples

This commit is contained in:
Peter Thorson
2011-10-28 09:26:54 -05:00
parent 71df42e97c
commit 536ded2512
8 changed files with 42 additions and 15 deletions

View File

@@ -62,13 +62,11 @@ int main(int argc, char* argv[]) {
std::cout << "case count: " << c->m_case_count << std::endl;
for (int i = 1; i <= c->m_case_count; i++) {
std::cout << boost::posix_time::to_iso_extended_string(boost::posix_time::microsec_clock::local_time()) << " Resetting io_service" << std::endl;
io_service.reset();
client->set_alog_level(websocketpp::ALOG_OFF);
client->set_elog_level(websocketpp::LOG_OFF);
std::cout << boost::posix_time::to_iso_extended_string(boost::posix_time::microsec_clock::local_time()) << " Initializing client (constructing socket)" << std::endl;
client->init();
client->set_header("User Agent","WebSocket++/2011-10-27");
@@ -77,13 +75,9 @@ int main(int argc, char* argv[]) {
url << "ws://localhost:9001/runCase?case=" << i << "&agent=\"WebSocket++Snapshot/2011-10-27\"";
std::cout << boost::posix_time::to_iso_extended_string(boost::posix_time::microsec_clock::local_time()) << " Parsing URL and resolving DNS" << std::endl;
client->connect(url.str());
std::cout << boost::posix_time::to_iso_extended_string(boost::posix_time::microsec_clock::local_time()) << " Starting io_service for test " << i << std::endl;
io_service.run();
std::cout << boost::posix_time::to_iso_extended_string(boost::posix_time::microsec_clock::local_time()) << " test " << i << " complete" << std::endl;
}
std::cout << "done" << std::endl;