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]ReadyRead in not emmitting inside Window service
QtWS25 Last Chance

[Solved]ReadyRead in not emmitting inside Window service

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 1.9k 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.
  • IamSumitI Offline
    IamSumitI Offline
    IamSumit
    wrote on last edited by
    #1

    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
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pmoglaikar
        wrote on last edited by
        #3

        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
        0
        • IamSumitI Offline
          IamSumitI Offline
          IamSumit
          wrote on last edited by
          #4

          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
          0
          • IamSumitI Offline
            IamSumitI Offline
            IamSumit
            wrote on last edited by
            #5

            somehow i solved my problem..

            Be Cute

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pmoglaikar
              wrote on last edited by
              #6

              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
              0
              • IamSumitI Offline
                IamSumitI Offline
                IamSumit
                wrote on last edited by
                #7

                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
                0
                • P Offline
                  P Offline
                  pmoglaikar
                  wrote on last edited by
                  #8

                  Ohh Okay that's fine then.

                  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