On Wed, Apr 7, 2010 at 11:06 PM, Glyn Matthews <[email protected]> wrote:
> Hi Erik,
>
> On 6 April 2010 18:20, Nelson, Erik - 2 <[email protected]>
> wrote:
>>
>> If I try to run two servers on the same port, will I get an error?  Taking
>> from the hello_world_server.cpp example, something like
>>
>>
>>
>>
>>
>> hello_world handler;
>>
>> server server_(“localhost”, “3000”, handler);
>>
>> server server_1(“localhost”, “3000”, handler);
>>
>>
>>
>> if I call run() on both servers from different threads, it appears that no
>> exception is thrown… is that expected behavior?  Is there some way to detect
>> if a port is already in use?
>>

If you're using Boost.Thread, the exception will actually emerge at
the point of the join.

A more complete listing would definitely help me debug it or reproduce at least.

(For some reason I don't see your email to the list, might have
something to do with Google's spam filters...)

-- 
Dean Michael Berris
deanberris.com

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