Boost logo

Boost Users :

Subject: [Boost-users] acceptor listen
From: Marco Piacentini (marcopiacenta_at_[hidden])
Date: 2011-03-04 02:26:15


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_at_[hidden]> A: boost-users_at_[hidden] 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_at_[hidden] http://lists.boost.org/mailman/listinfo.cgi/boost-users



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