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 Aug 17 09:06, Brian Ford wrote:
> My point should have been that I use this construct every day in 1.5.18
> and 1.5.21 within our application and it works fine.  I saw very few
> differences.  Here is my snippet in case I missed something else obvious:
> 
> fd = socket(AF_INET, SOCK_DGRAM, 0);
> 
> Oh yeah, you must call the setsockopt below after the bind on windows.
> Search MSDN for why.

Uh, that's the important clue!  I didn't know that and would have been
puzzled by this and found the relevant article in MSDN only after hours
of debugging.  Thanks for the information, it's pretty valuable.


Corinna


P.S.: Do you know the MSDN articel off-hand, maybe?

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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