ping client

This is a discussion on ping client within the C Programming forums, part of the General Programming Boards category; Hi, I'm trying to find a simple ping client that would talk to a ping server that I have that's ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    12

    ping client

    Hi,
    I'm trying to find a simple ping client that would talk to a ping server that I have that's in java. I'm trying to create a simplistic ping client similar to the actual ping program found in windows/dos. I was wondering if anyone know of a simple C ping client example that I could follow to convert into a java program. The only requirement for the program is to take hostname and port that it would connect to the server on. This is also done in UDP. Thank you for your time.

  2. #2
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Here is the net tools package for Linux. You should be able to figure out the rest for the DOS world.

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    12
    I don't see a ping/icmp ping source files in that tar? Also these examples would not be what I call simple to follow. Thanks for your try, but I'll see if anyone else has a simplier example.

  4. #4
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Oops, sorry. I thought that was the same thing as this.

  5. #5
    Registered User
    Join Date
    Nov 2005
    Posts
    12
    Yea I see the ping.c file, but these are pretty complex tools especially when they're being used in real life distribution. Thanks for the quick response. Hopefully someone in here has a basic example of a ping client communicating with a ping server.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to Send Mac Address From Client to Server
    By Lieyza197 in forum C Programming
    Replies: 2
    Last Post: 05-27-2009, 09:58 AM
  2. Socket Programming Problem!!!!
    By bobthebullet990 in forum Networking/Device Communication
    Replies: 2
    Last Post: 02-21-2008, 06:36 PM
  3. WSAAsyncSelect Socket Model. She's Not Hot.
    By Tonto in forum Networking/Device Communication
    Replies: 2
    Last Post: 03-24-2007, 08:34 AM
  4. Replies: 1
    Last Post: 09-18-2005, 09:06 PM
  5. Unicode vurses Non Unicode client server application with winsock2 query?
    By dp_76 in forum Networking/Device Communication
    Replies: 0
    Last Post: 05-16-2005, 07:26 AM

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