Boost logo

Boost Users :

Subject: [Boost-users] Boost asio question
From: Claude (clros_at_[hidden])
Date: 2011-02-02 14:39:07


Hi, it is possible obtain a Socket (boost::asio::ip::tcp::socket) from an
acceptor object?

This is my problem:
I use the accept() method of acceptor for wait on a connection.

But, in java, the method accept() of ServerSocket class return a socket
object and I can pass this reference to a thread that handles it and I can
continue to accept() in main program.

It is possible obtain this behavior with asio?

-- 
View this message in context: http://boost.2283326.n4.nabble.com/Boost-asio-question-tp3255518p3255518.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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