From: Simon Pickles (sipickles_at_[hidden])
Date: 2007-06-15 16:33:49
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:
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
Sure I am missing something simple.... thanks for the advice
-- http://www.simonpickles.com --- http://www.squirtualreality.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk