Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. command to examine if server is running
QtWS25 Last Chance

command to examine if server is running

Scheduled Pinned Locked Moved Solved QtonPi
7 Posts 3 Posters 1.6k 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.
  • C Offline
    C Offline
    carter_james
    wrote on last edited by carter_james
    #1

    hello people with which command can be examine if a
    server already running in linux

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What server ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        carter_james
        wrote on last edited by
        #3

        server from TCP/IP connection

        the_T 1 Reply Last reply
        0
        • C carter_james

          server from TCP/IP connection

          the_T Offline
          the_T Offline
          the_
          wrote on last edited by
          #4

          @carter_james
          Are there any services running on the server you want to connect to? Or do you only want to check if the server is still alive?

          -- No support in PM --

          1 Reply Last reply
          0
          • C Offline
            C Offline
            carter_james
            wrote on last edited by
            #5

            i have done TCP/IP connection between server and client in localhost.now i have cross compile the server in raspi2
            with der localhost adress without a client ,in this case the server is started.But when i have changed a localhoast adress with a raspi2 adress in server code, i get this error :

            Server has not started
            QFile::open: File (file.log) already open

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Are you starting your server twice on the same machine ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • C Offline
                C Offline
                carter_james
                wrote on last edited by
                #7

                yes on the same machine. i solved the trouble i only needed to add the argument QIODevice::ReadWrite to the connectToHost fonction
                thanks

                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