Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved]ReadyRead in not emmitting inside Window service

    General and Desktop
    3
    8
    1554
    Loading More Posts
    • 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.
    • IamSumit
      IamSumit last edited by

      I am using QTcpsocket readyread() signal but it is not emmitting inside window service what could be the reason(s)?

      Be Cute

      1 Reply Last reply Reply Quote 0
      • Q
        qxoz last edited by

        Can you show some code?
        What is "window service"?

        1 Reply Last reply Reply Quote 0
        • P
          pmoglaikar last edited by

          Hi,

          I guess you need to check in code whether the window service is belgon to QIODevice::Unbuffered 0x0020 Any buffer in the device is bypassed.
          mode, or any proxy will change the mode to this for your service while accessing Tcpsocket at any time.

          if yes then QTcpsocket cannot be opened and further things wont work.

          Thanks
          Prashant

          1 Reply Last reply Reply Quote 0
          • IamSumit
            IamSumit last edited by

            Thanks for your reply
            Actually readyRead() is working fine on Console
            but by making my program as a service tcpsocket connects to the server and writes too. But readyread() is not emmitting.

            Be Cute

            1 Reply Last reply Reply Quote 0
            • IamSumit
              IamSumit last edited by

              somehow i solved my problem..

              Be Cute

              1 Reply Last reply Reply Quote 0
              • P
                pmoglaikar last edited by

                Hi,

                That's good, If you figure out what's the problem & what you did to solve then publish it here so all our Qt users will find helpfull in future.

                Thanks
                Prashant

                1 Reply Last reply Reply Quote 0
                • IamSumit
                  IamSumit last edited by

                  Hii Prasant,,

                  I am not using readyRead() inside services.
                  I am using synchronous approach (Blocking) using waitForBytesWritten( int msecs ) So that i can get data from server inside service.

                  Be Cute

                  1 Reply Last reply Reply Quote 0
                  • P
                    pmoglaikar last edited by

                    Ohh Okay that's fine then.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post