Solved...

I have to use this instruction and all works fine, without using basic_endpoint

boost::asio::ip::tcp::endpoint endpoint=boost::asio::ip::tcp::endpoint(a,port)


Da: Igor R <boost.lists@gmail.com>
A: boost-users@lists.boost.org
Inviato: Ven 4 marzo 2011, 10:52:36
Oggetto: Re: [Boost-users] acceptor listen

> 1)Hi guys...I've seen the tutorial and the example, but I don't understand
> why the function listen() of the acceptor is never called...despite that new
> connections arrived...how is it possible?

Because some other acceptor member functions and some constructors
implicitly call listen().
If you've interested in the implementation details, you can try and
step into acceptor implementation and see what happens there exactly.

> 2)By the following instructions, I create a socket(a connection
> socket?????or a listening socket???) and then pass it at the acceptor
>
>             tcp::socket sock (ioserv);
>             acceptor.accept(sock);

sock is connection socket, acceptor is "listening socket"

You can access their native handles (socket handles) by calling
native() member function.
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users