• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OT ping sample code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OT ping sample code


  • Subject: Re: OT ping sample code
  • From: Quinn <email@hidden>
  • Date: Mon, 12 Jan 2004 17:39:01 +0000

At 19:35 +0300 12/1/04, Igor garnov wrote:
But what should I do to provide compatibility with both Mac OS 9 and X?

See my separate email.

I thought Open Transport was the right decision, and I still think it is, but as long as I do not have to ping. Am I right?

In general, yes. In the case of ping, the privileges issues make it easier to maintain different source for 9 and X.

In other words, if I do, say, only FTP transfers, can I use OT and still be sure that my Carbon application works on both Mac OS 9 and X?

Yes, that's the goal of the OT compatibility library on Mac OS X. Apple's general recommendation is "don't use the OT API", which makes sense given our other overall recommendation, which is "don't develop for traditional Mac OS". If you decide to ignore the latter (and there may be good marketting reasons to ignore it; it's up to you), there are good technical reasons to ignore the former.

The Mac OS X OT compatibility library is deprecated, which means that we discourage new development using the API and will probably not fix any existing bugs. However, there are no plans to remove the API or to break existing users of the API.

If I use BSD sockets, I will have to implement a kind of a notifier by myself.

You might consider wrapping the ICMP socket in a CFSocket, which you can then add to your runloop. This will call you back when data is available on the socket.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: OT ping sample code (From: Igor garnov <email@hidden>)

  • Prev by Date: Implementing Ping
  • Next by Date: Re: OT ping sample code
  • Previous by thread: Re: OT ping sample code
  • Next by thread: Re: OT ping sample code
  • Index(es):
    • Date
    • Thread