ping
ping
- Subject: ping
- From: Igor garnov <email@hidden>
- Date: Wed, 11 Feb 2004 01:42:04 +0300
Hello
I have already asked questions on ping implementations here, and got
extensive replies.
I have downloaded and thoroughly examined both SimplePing and
OTPingSample sample code.
I am developing a CFM application that is meant to run on both Mac OS 9
and X.
I am now trying to implement a model, where synchronous endpoints live
in MPTasks, and that makes my code easy to support (because I use
sockets for all network operation on Mac OS X by linking dynamically to
system framework at runtime and getting all necessary function
pointers) - synchronous endpoints and blocking sockets behave quite the
same (at least at the level I operate).
I would like to check if I understand correctly the scheme of ping.
When I create a socket similar to that shown in "SimplePing" sample, I
get a socket that receives all the packet directed to my machine, or
only all ICMP packets?
If I get all the packets - what should I do to prevent other apps from
crashing because I intercept packets directed to them?
If I have to ping, say, five IPs at a row, is it necessary to create
five sockets? Or will it be enough to use just one and to check the
source addresses of incoming ICMP packets?
Is it the same for endpoints, which I will have to use on Mac OS 9?
Will I have to create five endpoints for pinging five IPs, or will one
suffice?
If for some reason I will go for non-blocking sockets and asynchronous
endpoints, is it possible that I lose ICMP echo replies because of
delay between actual arrival of data and call of OTRcvUData?
Many thanks in advance,
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.
- Follow-Ups:
- Re: ping
- From: Justin Walker <email@hidden>