From: Jean-Sebastien Stoezel (js.stoezel_at_[hidden])
Date: 2008-08-07 12:51:04


Hi,

How to get the port number and ip address of an acceptor?

I tried this:

boost::asio::ip::tcp::acceptor acceptor(m_IoService);
boost::asio::ip::tcp::acceptor myEndPoint(m_IoService);

acceptor.get_option(myEndPoint);

But this does not compile, Iget a couple of errors in
win_iocp_socket_service.hpp like this one:

Error 8 error C2039: 'level' : is not a member of
'boost::asio::basic_socket_acceptor<Protocol>'

Thanks,
Jean