This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Cygwin 1.5.18: Problem using setsockopt() for multicast


On Thu, 17 Aug 2006, Alessandro Saffiotti wrote:
> On Thu, 17 Aug 2006, Brian Ford wrote:
> > Oh yeah, you must call the setsockopt below after the bind on windows.
> > Search MSDN for why.
>
> Thanks a lot, this actually fixed my problem.

You're welcome.  Sorry for the initial noise.

> In case it may help someone else: I also need to make the socket
> reusable by
>
>  setsockopt(tcp_broadcast_receiver, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)

I've never had to do that, so it must be an issue with your code that
requires it to be reusable.

> and I have found that this, contrary to the IP_ADD_MEMBERSHIP case,
> must be called BEFORE I bind the socket!

Um, that makes sense, doesn't it?

-- 
Brian Ford
Lead Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...

.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]