simulating "ping" command pls help ??
Results 1 to 4 of 4

Thread: simulating "ping" command pls help ??

  1. #1
    Senior Member
    Join Date
    Sep 2001
    Posts
    534

    Unhappy simulating "ping" command pls help ??

    Hello friends i want to write my own program which simulates "ping" command... but i was wondering how to start can anybody give me some hints like where will i find some info on how to go about it ???

    pls help.

    intruder
    A laptop, internet connection and beer.

  2. #2
    I take it by 'simulation' you mean one that actually pings, not just clever manipulation of strings. if this is the case, i suggest you read up on ICMP. Also, what language are you using? make sure you know how to correctly use sockets and send ICMP packets in your selected language.

  3. #3
    Senior Member tampabay420's Avatar
    Join Date
    Aug 2002
    Posts
    953
    www.planetsourcecode.com
    has a few implementation of the ICMP protocol?
    i know of one in C++ for raw sockets, and another
    in Visual Basic (if win32) for ICMP using Winsock...
    just goto planetsourcecode.com and search for ->
    "ping icmp raw sockets" ... that should point you
    in the general direction
    yeah, I\'m gonna need that by friday...

  4. #4
    Senior Member
    Join Date
    Sep 2001
    Posts
    534
    I am using C on UNIX and i also know socket programming but i don't know how exactly to go about it..
    is there any structure in C for the ICMP protocol ??
    A laptop, internet connection and beer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •