-----Original Message-----
From: Kim Gräsman [mailto:[email protected]] 
Sent: Friday, April 09, 2010 12:27 PM
To: C++ Networking Library Developers Mailing List
Subject: Re: [cpp-netlib-devel] two servers listening on same port?

Hi guys,

On Fri, Apr 9, 2010 at 17:58, Nelson, Erik - 2
<[email protected]> wrote:
>
>>Okay, can you give more details? What compiler, which OS,
>>what are the exact arguments you're providing? Did you
>>compile the example with bjam, what version of Boost are you using?
>
>>It's going to be really hard to help if you can't give us more to look
> at. ;)
>
> I compiled with MSVC 2008 on Windows XP, using arguments of "localhost"
> and "3000".  I'm using boost 1.42, not using bjam, just added the
> hello_world_server.cpp to my visual studio project.

>I wonder if SO_REUSEADDR has anything to do with it...
>http://www.unixguide.net/network/socketfaq/4.5.shtml

I think you might be right...

http://msdn.microsoft.com/en-us/library/ms740621%28VS.85%29.aspx

looks like maybe there should be no SO_REUSADDR (or maybe there should be a 
SO_EXCLUSIVEADDRUSE) as SO_REUSADDR causes indeterminate behavior

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