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. Get outgoing connections of an QProcess

Get outgoing connections of an QProcess

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 641 Views 2 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.
  • J Offline
    J Offline
    jjan
    wrote on last edited by
    #1

    Hey,

    I want to get the outgoing connections of an QProcess (or PID). I have heard something about netstat but I don't want to use a command line tool (only if there is no other way). Is there an way to solve this using Qt? Or do I need an 3rd Party library? Hope anyone can help.

    ~ jan

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

      AFAIK there is not. Not unless the process you are spawning writes information like that out to stdout. Then you can read that and parse it.

      I have used a QProcess for running pppd and it outputs information about connections so I was able to parse that output for the info I need.

      But QProcess itself doesn't have any way of detecting what connections the process is making.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      1

      • Login

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