Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. My own packet
Qt 6.11 is out! See what's new in the release blog

My own packet

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MohammadReza
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      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

      Greetz, Jeroen

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MohammadReza
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MohammadReza
          wrote on last edited by
          #4

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

          Thanks.
          Ya Ali.

          1 Reply Last reply
          0
          • JeroentjehomeJ Offline
            JeroentjehomeJ Offline
            Jeroentjehome
            wrote on last edited by
            #5

            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.

            Greetz, Jeroen

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved