Thread: pinging & scanning...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    2

    Question pinging & scanning...

    Hello again,
    I want to create a simple program that will ping a host to see if its alive & if it is then scan to see if port 80 is open.

    I have been reading up on sockets & trying to learn something about them
    But what do I do if I want to ping?
    I don't want to do a
    Code:
    system("ping");
    Because this will slow down the program?

    So what function can do a ping? or is it just another thing to do woth connect();?

    Thanks Again
    John

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    This is operating system specific.

    I suggest you do some research. This page has a good set of links.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Scanning for hosts.
    By wierdbeard65 in forum Networking/Device Communication
    Replies: 8
    Last Post: 06-26-2008, 06:20 AM
  2. scanning in character string
    By zackboll in forum C Programming
    Replies: 12
    Last Post: 11-24-2004, 02:18 AM
  3. port scanning
    By HEADSH(+)T in forum C++ Programming
    Replies: 4
    Last Post: 04-23-2004, 02:44 AM
  4. scanning in with gets() but not over inputing
    By stephanos in forum C Programming
    Replies: 1
    Last Post: 09-09-2002, 03:38 PM
  5. stopping some scanning
    By aoe in forum C Programming
    Replies: 4
    Last Post: 06-09-2002, 01:50 PM