on Thursday, April 08, 2010 3:23 Dean Michael Berris wrote:

>>[email protected]> 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.

I think I confused the issue by bringing up the threads... maybe taking a step 
back, what would you expect to happen if two copies of hello_world_server.cpp 
are run simultaneously (separate processes, same hostname and port)?  When I do 
that, I get no exception or any indication that one of them is not actually 
operating properly.

Erik
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel

Reply via email to