Re: Am I Connected (Cont'd ... again)
Re: Am I Connected (Cont'd ... again)
- Subject: Re: Am I Connected (Cont'd ... again)
- From: Josh Graessley <email@hidden>
- Date: Tue, 12 Feb 2002 11:47:44 -0800
Another important point is that ping may fail while general connective would
succeed. Some firewalls will block ping traffic. I think this was a problem
with the AFP client at some point. If the client could ping the server it
wouldn't try a TCP connect.
Pinging for connectivity is a bad idea.
-josh
On 2/12/02 10:42 AM, "Eric Gundrum" <email@hidden> wrote:
>
John,
>
>
There is no reasonable solution to keep one code path for networking over
>
privileged ports on both OSes. However, you probably can make one code path
>
work if you can avoid privileged networking. Maybe a better way to test
>
connectivity is to try an HTTP GET on a series of well-known servers. You
>
still will have OSX-specific code to determine if the network interface is
>
active and avoid dialing a modem.
>
>
If you must use ping, I still think the simplest solution is to use ping
>
built into OSX. This avoids all the authentication issues, which will
>
provide a much better user experience.
>
>
--eric
>
>
--- At 12:15 PM -0500 2/12/02, John Cebasek wrote:
>
> Hi All:
>
>
>
> Maybe I missed one small point in describing this problem I'm currently
>
> trying to get around.
>
>
>
> We're a Carbonized Powerplant application - which means the solution to
>
> decide wether or not the computer is connected to the 'net has to work in 9
>
> and X. Some code, which reads/writes to the server has been moved to a class
>
> that abstracts net access and sits on either WinSock or Carbonized GUSI. My
>
> test harnesses which exercises this code works well on 9 and X.
>
>
>
> However, the code that decides whether or not the computer is connected to
>
> the 'net is very machine dependent, which started this thread.
>
>
>
> In looking at the code to OTPingSample, I carbonized it (replacing methods)
>
> and that's where I ran into the authorization problem when running under X.
>
> And I guess one of the design goals is not to have different paths based on
>
> OS versions through code that decides "Am I Connected" - unless I really
>
> really have to.
>
>
>
> I really thought that it was a simple little problem and I didn't have
>
> enough network programming experience...
>
>
>
> If anyone has any ideas, I'm all ears!
>
>
>
> Best Regards
>
>
>
>
>
> John Cebasek
>
> email@hidden
>
> _______________________________________________
>
> 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.
>
_______________________________________________
>
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.
_______________________________________________
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.