|
From: Dean M. B. <mik...@gm...> - 2010-04-08 07:23:22
|
On Thu, Apr 8, 2010 at 1:49 AM, Nelson, Erik - 2
<eri...@ba...> wrote:
>
> int main(int argc, char * argv[]) {
> try {
> ThreadServer thread_server("localhost", "3000");
> boost::thread thread_(boost::bind(&ThreadServer::thread_func, boost::ref(thread_server)));
> hello_world handler;
> http::server<hello_world> server("localhost", "3000", handler);
> server.run();
Here, you are blocking the current thread.
> thread_.join();
And if ever you get here, the exception will throw.
--
Dean Michael Berris
deanberris.com
|