Code to Ping the server on the network or Internet

How do I write an application similar to Ping which would tell that the server is available to the my machine and the milliseconds in which the packets are transferred.

Please anybody can provide me with the code.

bhavikAsked:
Who is Participating?
 
Roshan DavisConnect With a Mentor Commented:
0
 
Roshan DavisCommented:
Try this link also

http://codeproject.com/internet/winping.asp

GOOD LUCK
0
 
Roshan DavisCommented:
Source fro PING program in C
http://www.programmersheaven.com/zone15/cat241/2417.htm

GOOD LUCK
0
 
griesshCommented:
Dear bhavik

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "roshmon"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
MindphaserCommented:
Force accepted

** Mindphaser - Community Support Moderator **
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.