|
Boost Users : |
Subject: Re: [Boost-users] acceptor listen
From: Marco Piacentini (marcopiacenta_at_[hidden])
Date: 2011-03-04 05:10:03
thank you Igor, you're very kind...now I understand..bye!
________________________________
Da: Igor R <boost.lists_at_[hidden]>
A: boost-users_at_[hidden]
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_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