![]() |
| | #1 |
| Registered User Join Date: Apr 2006
Posts: 9
| i learnt a lot of socket programming from this forum. managed to figure out a lot of finer points here 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 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 !!!!! |
| madcat23 is offline | |
| | #2 |
| Registered User Join Date: Jan 2006 Location: Berkeley, Ca
Posts: 196
| 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. |
| cdalten is offline | |
| | #3 |
| Registered User Join Date: Apr 2006
Posts: 9
| 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 |
| madcat23 is offline | |
| | #4 |
| Registered User Join Date: Mar 2005 Location: Mountaintop, Pa
Posts: 1,059
| Check ping.zip from examples for Winsock 2.0 book |
| BobS0327 is offline | |
| | #5 |
| Registered User Join Date: Apr 2006
Posts: 9
| thanks bob .. |
| madcat23 is offline | |
| | #6 |
| * Death to Visual Basic * Join Date: Aug 2001
Posts: 768
| 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
__________________ "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe http://www.Bloodware.net - Developing free software for the community. |
| Devil Panther is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ping and Traceroute not working in IPv6 environment on Windows XP / Win Server 2003 | vigneshp | Networking/Device Communication | 8 | 05-07-2009 11:31 AM |
| IPv6 ping in windows...problem..lots of ode:( | Neill KElly | C Programming | 3 | 04-27-2009 11:50 PM |
| Problem with com application | amardon | C++ Programming | 3 | 10-06-2005 05:50 AM |
| MFC run application by clicking on file... | dug | Windows Programming | 4 | 12-02-2004 04:33 AM |