Boost logo

Boost Users :

Subject: Re: [Boost-users] acceptor listen
From: Igor R (boost.lists_at_[hidden])
Date: 2011-03-04 04:52:36


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