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. Possible to capture all the tcp packages sent from my computer?

Possible to capture all the tcp packages sent from my computer?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.0k Views
  • 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.
  • B Offline
    B Offline
    billconan
    wrote on last edited by
    #1

    Hello guys,

    I am interested in writing a little tool to capture all the tcpip packages sent by my web browsers (multiple browsers). I heard that every request sent by a browser actually uses a different port. So is it possible to write a program using QT to listen to all the ports?

    Suppose I have two applications that are listening to the same port. Can both of them respond to the tcpip request? Or the operating system will only give the package to one of the listeners?

    I know a tool called TCPView for windows that does this. But since I am using a different operating system and there is no fun to use a readymade tool, I still want to write one myself.

    Thanks,

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      This requires interacting with the network stack on a level that is not supported by Qt. Of course you can write the front end code using Qt, but for the actual hooking into the OS to do what you want, Qt can not help you.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Scylla
        wrote on last edited by
        #3

        For this you should take a look at the pcap lib and use Qt as frontend.

        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