ping application

This is a discussion on ping application within the Networking/Device Communication forums, part of the General Programming Boards category; hi everyone.. i learnt a lot of socket programming from this forum. managed to figure out a lot of finer ...

  1. #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 !!!!!

  2. #2
    Registered User
    Join Date
    Jan 2006
    Location
    Berkeley, Ca
    Posts
    195
    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.

  3. #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

  4. #4
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    Check ping.zip from examples for Winsock 2.0 book

  5. #5
    Registered User
    Join Date
    Apr 2006
    Posts
    9
    thanks bob ..

  6. #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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 05-07-2009, 11:31 AM
  2. IPv6 ping in windows...problem..lots of ode:(
    By Neill KElly in forum C Programming
    Replies: 3
    Last Post: 04-27-2009, 11:50 PM
  3. Problem with com application
    By amardon in forum C++ Programming
    Replies: 3
    Last Post: 10-06-2005, 05:50 AM
  4. MFC run application by clicking on file...
    By dug in forum Windows Programming
    Replies: 4
    Last Post: 12-02-2004, 03:33 AM

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