-
ping application
hi everyone..
i learnt a lot of socket programming from this forum. managed to figure out a lot of finer points here :D
because of my new found love for C.. i signed up for a "writing a Ping program in C" project. now i know that i still have to create an ICMP header use raw sockets and send it through sendto()
i was just wondering if anyone of you kind foks has a sample application for just creating ICMP header and sending a ping packet - cause i couldnt find anything good for a beginner on the net :rolleyes: i think i`ve figured out the reciving and calculating the checksum part.. but i was thinking it would be best to startout by checking if i can actually send one !! ;)
thankyou very much. you ppl rule !!!!!
-
If you can get a hold of the third edition book "Unix Network Programming: The Socket Networking API" by Stevens, Fenner, and Rudoff, take a look at chapter 28.
-
thanks for the quick reply !!
i managed to find a torrent for that book .. :) but a quick question .. will unix code work on windows VC++ ? cause in my assignment they have specifially mentioned that i should use that
-
-
-
Do you really want to write it, or just have a something to ping with :)
If you want something simple, I suggest you use API (I understood you're on windows).
Google: icmp.dll