Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-180

QtService currently not working with sockets due to API changes in Qt5. I also appended the fix!

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Next Major Release, Next Patch Release
    • Fix Version/s: No Version
    • Component/s: Service
    • Environment:
      Unix only
    • Commits:
      25e2cbba97ad53036aafa4a2b8cb5ad420d8fe05 (qt-solutions/master, 10.12.2015)

      Description

      The method in

      void QtServiceSysPrivate::incomingConnection(int socketDescriptor);

      is an reimplemented method from QTcpServer. But in Qt5 the actual signature changed to

      void QTcpServer::incomingConnection(qintptr socketDescriptor);

      This is incompatible for the compiler and so the reimplemented version is never called! The
      communication between instances over sendCMD() does not work.

      Can you fix this please to use qintptr instead of int? I tried it. After that everything works like under Qt4. Maybe you need a pre-processor switch for Qt4 and Qt5 argument types.

      Thanks
      Andreas

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pietz Andreas Pietzowski
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes