Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to use PING utility in my program

How to use PING utility in my program

Scheduled Pinned Locked Moved C#
toolstutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HAHAHA_NEXT
    wrote on last edited by
    #1

    How can i use the ping utility in my program. I need to ping a particular IP address and display the result.

    K 1 Reply Last reply
    0
    • H HAHAHA_NEXT

      How can i use the ping utility in my program. I need to ping a particular IP address and display the result.

      K Offline
      K Offline
      Kentamanos
      wrote on last edited by
      #2

      There's two options: 1. Run the ping program by launching it. There's LOTS of examples out there on how to launch a console program and redirect its stdout and stderr back to you. 2. Figure out the ping protocol and write some socket code to do it yourself. I'm guessing #2 wouldn't be that hard to do, but I've never looked at ping myself.


      I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.
      -David St. Hubbins

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups