OTConnect on Mac OS X
OTConnect on Mac OS X
- Subject: OTConnect on Mac OS X
- From: Igor garnov <email@hidden>
- Date: Thu, 15 Jan 2004 16:53:45 +0300
Hello
I work with Open Transport, building Carbon CFM application.
I am using asynchronous blocking endpoints.
OTConnect returns kOTNoDataErr, which means that it's OK - I am going
to receive either T_CONNECT or T_DISCONNECT in a moment.
My purpose is to find out if a host is online or not. I am trying to
connect to port 9 (instead of pinging the host) and analyze the result
returned if it is 61 (ECONNREFUSED) I take it the host is online and
just does not listen on the port, if the result is anything else - the
host is down.
On Mac OS 9 my application runs as I expect. I get T_DISCONNECT event,
and go on.
But on Mac OS X I do NOT get ANY event for those hosts that are down (
I know it for sure because all of them are right here before me), and I
DO get T_DISCONNECT for those hosts which are online and do not listen
on the port.
Of course, I can go forth with it as well - if I get T_DISCONNECT on
Mac OS X< this means that the host is online, and I can work with it.
But how can I tell that some host is down? Do I have to install some
kind of a timer?
Or am I doing something wrong? It is abnormal, however, that I do not
get any notification about the fact the some host is unreachable on Mac
OS X.
Any ideas are greatly appreciated.
Regards,
Igor
_______________________________________________
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.