Sockets


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Sockets

  1. #1
    JAB Guest

    Sockets


    I wrote a small application via Socket programming that pings one of our network
    servers using an IP address and the servers echo port (#7). I have a total
    of 15 servers and only one is available through the echo port, the others
    are using the ICMP protocol. The same routine that is running OK with the
    echo port fails on the servers using ICMP.

    Does anyone know how to ping a server that is configured using the ICMP protocol?

    Thanks
    JAB


  2. #2
    syed zulfiqar Guest

    Re: Sockets


    Hi JAB,
    I think u need to build up your own ICMP Datagram packet. PING uses
    the ICMP Echo functionality. Check out
    http://www.FreeSoft.org/CIE/Topics/81.htm

    for a protocol overview. And

    http://www.ee.siue.edu/~rwalden/netw.../icmpmess.html

    for the format of the Echo packet which you'll need to build. You'll have
    to create a Server Socket to receive the responses to the packets that you
    send out.

    Hope that helps.

    Cheers
    syed zulfiqar

    "JAB" <brunoj@netcarrier.com> wrote:
    >
    >I wrote a small application via Socket programming that pings one of our

    network
    >servers using an IP address and the servers echo port (#7). I have a total
    >of 15 servers and only one is available through the echo port, the others
    >are using the ICMP protocol. The same routine that is running OK with the
    >echo port fails on the servers using ICMP.
    >
    >Does anyone know how to ping a server that is configured using the ICMP

    protocol?
    >
    >Thanks
    >JAB
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center