Boost logo

Boost Users :

Subject: Re: [Boost-users] basic_endpoint how to assign it
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2011-03-07 09:48:49


> but the first parameter of the async_connect is a endpoint and not a
> basic_endpoint...

erm... I hope you are aware that an endpoint is a basic_endpoint
(through inheritance)?

boost::asio::ip::tcp::endpoint target(
boost::asio::ip::address::from_string( "127.0.0.1" ), 1000 );
socket_.async_connect( target, bind( ... ) );

HtH,

Rutger


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net