Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qsocketnotifier
    Log in to post

    • UNSOLVED QSocketNotifier Exception After Deletion of QNetworkAccessManager Object
      General and Desktop • qnetworkaccessm qnetworkreply qnetworkrequest qsocketnotifier • • Zach M  

      10
      0
      Votes
      10
      Posts
      594
      Views

      Ahh sorry I thought an strace would help. It might take me a bit to get an actual stack trace as I'd have to set up my build environment with debugging symbols. The reason I was recreating QNetworkAccessManager is because I was under the impression that I needed to do so when I lost network access (m_mgr->networkAccessible() != QNetworkAccessManager::Accessible). That's what a user said on this stack overflow post. Is that incorrect? If I could just used something like setNetworkAccessible() that would avoid this whole mess. I've tested out removing the QNAM deletion and the exception does not occur. I guess I am sort of confused in general about what QNetworkAccessManager::NetworkAccessibility even represents? It's not going to alter the actual network state, NetworkManager handles that
    • UNSOLVED How to use QSocketNotifier on write mode on sockets
      General and Desktop • can bus qsocketnotifier • • Xatyrian  

      3
      0
      Votes
      3
      Posts
      854
      Views

      @Xatyrian said in How to use QSocketNotifier on write mode on sockets: all the time even if there is nothing that has been written ! It is right behavior, please read how its work (e.g. about select() and so on). It need to use like this (e.g. for writing): Add data to be written to some internal buffer. Enable the write notifier. When the write notifier fired, just take all data from the buffer and send to ::send/::write. When the write notifier fired again, check for p.3.. If a buffer is empty - just disable wrute notifier. AFAIK, there are no ways to know that the data are written physically, to client. BTW: You can use qtserialbus module which implements the SocketCAN support (as I can see from your tag), just use a newest Qt version, as 5.3 is too old.
    • UNSOLVED How to emit a signal in whole of project?
      Mobile and Embedded • emit signal qsocketnotifier • • MhM93  

      5
      0
      Votes
      5
      Posts
      5667
      Views

      Thanks for all. I should test it , if it works I will put the code completely here.
    • [SOLVED] Multithreaded QSslSocket Server Problem
      General and Desktop • qthread qtcpsocket qtcpserver ssl qsslsocket qssl qsocketnotifier • • SebastianS  

      3
      0
      Votes
      3
      Posts
      2623
      Views

      Hi, since I am convinced that somebody else will also have similar problems I wrote a tutorial how to create a multithreaded server: https://five-s.de/en/how-to-create-a-multithreaded-server-in-qt Best regards