Boost logo

Boost :

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:

    boost::asio::io_service io_service;

    tcp::resolver resolver(io_service);
    tcp::resolver::query query(DEFAULT_SERVERNAME); //
    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


--  --- 

Boost list run by bdawes at, gregod at, cpdaniel at, john at