From: Nelson, E. - 2 <eri...@ba...> - 2010-04-09 17:49:25
|
-----Original Message----- From: Kim Gräsman [mailto:kim...@gm...] 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 <eri...@ba...> 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 |