Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: UDP Broadcast on mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UDP Broadcast on mac



Networking is built by layers. The top layer, the application layer is what you are developing, this sends information, in the form of packets to the transport layer. The transport layer, TCP or UDP, packages them and sends them down to the next layer and so on. After they are sent to the receiver, they are stripped of the added information as they go back up the layers stopping with the application layer. The protocols are system independent. There should be no difference what platform you are using, as long as TCP/UDP is implemented. If you are sending out packets to the loopback interface lp0, 127.0.0.1 typically, there should be no problem receiving them, providing that the machine is listening for them. This is usually done by binding a port to listen for requests, then handling them appropriately. If you are going out of your system, then back in through en0, or a different interface, and if your firewall is on, it might be blocking the requests coming into whatever port you are trying to use. Another thing is that if you are port forwarding from a router, make sure that both tcp and udp packets are being forwarded, otherwise the router will throw out upd packets. I have written a nntp server and client on OS X that worked on linux, OS X, and windows machines seamlessly (luckily we were using java, so it was trivial to port it). Let me know if this helps, or if you need more assistance.

Ryan Swift
On Nov 10, 2003, at 9:16 AM, Andrew Farmer wrote:

On Mon, 10 Nov 2003 03:57:02 -0800, Razia Bulsara muttered:
I have developed an app for Open Transport UDP broadcast on Mac,The app
has a Windows counterpart that it needs to communicate with.. Both apps
broadcast UDP packets. The difference is that the Windows version receives
the
packets it sends and also cross platform, whereas the Mac version does not
recieve its own packet. It is fairly important that the apps behave
identically in
this respect. How do I go about getting my Mac client to
receive its own packets?

Write in a special case?

What (broadcast?) address are you sending the packets to?

--
Andrew Farmer
email@hidden

[demime 0.98b removed an attachment of type application/pgp-signature]
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.

References: 
 >UDP Broadcast on mac (From: "Razia Bulsara" <email@hidden>)
 >Re: UDP Broadcast on mac (From: email@hidden (Andrew Farmer))



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.