| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
| References: | |
| >udp broadcast (again, code included) (From: Dominique Fober <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.