Re: OT ping sample code
Re: OT ping sample code
- Subject: Re: OT ping sample code
- From: "Duane Murphy" <email@hidden>
- Date: Mon, 12 Jan 2004 08:58:11 -0800
--- At Mon, 12 Jan 2004 19:35:56 +0300, Igor garnov wrote:
>
On Monday, Jan 12, 2004, at 19:05 Europe/Moscow, Peter Sichel wrote:
>
>
>> Please note - I need a sample code that uses Open Transport. I am
>
>> pretty aware that there is a sample at the Apple web site named
>
>> "Simple Ping", but it's done using BSD sockets. I would prefer to
>
>> avoid digging too deep into that sort of things, although I know that
>
>> I will have to unless I have found what I am looking for.
>
>
>
> If you want to support machines running Mac OS X outside of Classic
>
> mode,
>
> the Open Transport sample code won't work.
>
>
>
> Thus folks like me have had to completely rewrite our software for Mac
>
> OS X.
>
>
But what should I do to provide compatibility with both Mac OS 9 and X?
>
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 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?
>
>
If I still have to ping hosts - what should I use on Mac OS X instead
>
of Open Transport? I have already got used to idea of having a notifier
>
that tells me when something happens on the network. I would like to
>
use this paradigm further on. If I use BSD sockets, I will have to
>
implement a kind of a notifier by myself.
It sounds like you started off on the wrong foot. :-)
OpenTransport works great on Mac OS X. Most of our networking software in
our application is the same for both 9 and X using OpenTransport. (Thank
You Apple!!!!).
The catch is that OS X has network security. As long as you stay away
from raw ethernet, raw IP, and opening low numbered sockets (ie servers),
then OpenTransport works fine.
If you don't need ping then you'll be just fine.
...Duane
_______________________________________________
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.