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?

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);

3)Now, how can I obtain the other socket(connection or listening dependind on the previous question)?
In C, I simply use the socket descriptors which are passed as arguments to the various functions (listen, bind, accept) and these functions return in some cases another socket descriptor.
Then these descriptors are used to closed the different sockets.
Here, with boost, I don't know how make that.
Please help me.
Thanks..



Da: Igor R <boost.lists@gmail.com>
A: boost-users@lists.boost.org
Inviato: Gio 3 marzo 2011, 10:01:08
Oggetto: Re: [Boost-users] boost::asio multiprocess

> thank you, it works...my problem now is how to get the connection socket
> used by acceptor...

acceptor.native()?
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users