Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: udp broadcast (again, code included)



At 11:55 +0100 4/12/02, Dominique Fober wrote:
>Hi,
>
>One more time, sorry for the dropped attachment: the code is now included at
the end of my mail.
>
>I'm broadcasting packets over upd using the socket API. The minimum options set
is SO_DONTROUTE and SO_BROADCAST (setup makes use of setsockopt).
>My problem is that the sender station never reads packets broadcasted by
itself, although 'tcpdump ip broadcast' shows that these packets are locally
visible. Apart this 'local' problem, everything works correctly for other
stations. The same code is running as expected on linux. Is there anything
special to do on darwin?
>The corresponding code is below. To compile on OSX, define the MACOSX macro
(gcc -DMACOSX broadcast.c -lpthread -o broadcast)
>My system version is Darwin Kernel Version 6.2 (MacOSX 10.2.2)
>
>Thanks for any idea, even suggestions for any alternate place or mailing list
where I could find a solution are welcome.
>
>Dominique Fober
>

We get the same problem.
Thierry Carron - Mil Productions
email@hidden
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.