Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

My own packet



  • Hello friends,

    i want to make my own packet.(i.e. i have to add header and data of a packet manually)
    How can i do it by Qt?
    what libraries can help me?

    Thanks a lot.
    Ya Ali.



  • Hi,
    This post is a bit unclear to me. What do you mean with a packet? Do you need to construct a library? What is your end goal?
    Greetz



  • Hello dear,
    Thanks for your response.
    First pardon me because of my English writing.

    I want to set my own information in the header & data of a packet.
    For example, i want to set the ACK field or SEQ# Field,etc with my own information.
    How can i do it?
    Are there any library in Qt to help me?



  • I searched and found, I have to use winpcap/libpcap!
    If there are another ways, please guide me.

    Thanks.
    Ya Ali.



  • Ah, you need to capture raw TCP/IP data packages. Hmm, search for the QNetwork classes and check that out.
    "QtNetwork":http://qt-project.org/doc/qt-4.8/qtnetwork.html
    There are a lot of classes made for communication via networks, so yes, there will be classes capable of what you want. No idea which one, never tried it.


Log in to reply