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. [Solved]Gateway and QProcess
Forum Updated to NodeBB v4.3 + New Features

[Solved]Gateway and QProcess

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

    Is there a simple way to get the Gateway on eth0;

    I have tried with this command
    "etc/netstat -rn |grep eth0 | grep '^0.0.0.0' | cut f4";

    Or does qt got another way to get this info in a simple way just as to get the ip and netmask with the Network entry and interface class;

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

      take a look on "QHostAdress":http://developer.qt.nokia.com/doc/qt-4.8/qhostaddress.html
      and "QHostinfo":http://developer.qt.nokia.com/doc/qt-4.8/qhostinfo.html

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AcerExtensa
        wrote on last edited by
        #3

        And I've found this "thread ":http://developer.qt.nokia.com/forums/viewthread/7497

        God is Real unless explicitly declared as Integer.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          toho71
          wrote on last edited by
          #4

          Exactly what I have found to but I dont see where to get the gateway in the QHost-classes

          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