C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 05-06-2006, 10:24 PM   #1
Registered User
 
Join Date: Apr 2006
Posts: 9
Arrow ping application

hi everyone..

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   Reply With Quote
Old 05-06-2006, 10:43 PM   #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   Reply With Quote
Old 05-06-2006, 11:15 PM   #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   Reply With Quote
Old 05-07-2006, 07:58 AM   #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   Reply With Quote
Old 05-09-2006, 01:06 PM   #5
Registered User
 
Join Date: Apr 2006
Posts: 9
thanks bob ..
madcat23 is offline   Reply With Quote
Old 05-09-2006, 03:06 PM   #6
* Death to Visual Basic *
 
Devil Panther's Avatar
 
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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 12:33 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22