Hello, I've just discovered boots::asio. Looks good but got a small problem. I'm basing my client on the chat_client example, but having a problem. In the example, command line arguments are passed to the chat_client specifying server details. My question is, what is the format of the argv in the example? I have modified things a little to fit into my system, but am not sure what to pass the chat_client class. I have tried passing "localhost", but am still getting an error here: boost::asio::io_service io_service; tcp::resolver resolver(io_service); tcp::resolver::query query(DEFAULT_SERVERNAME); // DEFAULT_SERVERNAME = '127.0.0.1' tcp::resolver::iterator iterator = resolver.resolve(query); // <<< error here, in 'implementation' - not defined! m_connector = boost::shared_ptr<CConnector>( new CConnector( io_service, iterator ) ); // <<< this is just a version of chat_client.hpp Sure I am missing something simple.... thanks for any advice Simon -- http://www.simonpickles.com --- http://www.squirtualreality.com
participants (1)
-
Simon Pickles