Results 1 to 4 of 4

Thread: QtNetwork send ICMP Packet

  1. #1
    Join Date
    Mar 2006
    Location
    Italy
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Post QtNetwork send ICMP Packet

    Hello everybody,
    i'm trying to create a simple ICMP Packet sender with Qt4, i would like to know if is possible to send ICMP Packets throw QAbstractSocket Extension or by another way.
    I saw that using std socket it is possible (but as usual using IP RAW & u need root privileges on Linux) but i would like to use qt framework not only for GUI but also as Core engine for my app.
    Thanks,
    Bye Bye...
    SlowTree

  2. #2
    Join Date
    Apr 2006
    Posts
    5
    Thanks
    1
    Platforms
    Unix/X11 Windows

    Default Re: QtNetwork send ICMP Packet

    yes i also needed this . i want to START as well as STOP the Ping through my application. I am using Qt4 on Suse Linux 9.3.

  3. #3

    Default Re: QtNetwork send ICMP Packet

    Hi,

    you've to know the structure of the ICMP protocoll, than you're able to build such a package, using QTcpSocket. If you don't want to enter this topic so intense, you can use a portable Library like libpcap ( and winpcap on Windows ).

    If you want to write such a lib manually, you've to take a look on RFC 792 ( http://www.faqs.org/rfcs/rfc792.html )

    greetings

  4. #4
    Join Date
    Nov 2006
    Posts
    96

    Default Re: QtNetwork send ICMP Packet

    Hi. I'm sorry I'm waking up this topic, but I have the some questions.

    Well, I want to build my own ICMP packet:
    - can this really be done using QTcpSocket?
    - how can I start building one... by appending certain bits into a QString or what... Any tips will do!

    I want to build a ping program based on ICMP packets and the hard thing to do is build a ICMP packet, so I need some help. Thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.