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. QUdpSocket::dataReady() triggered when sending data and there is no receiver
Forum Updated to NodeBB v4.3 + New Features

QUdpSocket::dataReady() triggered when sending data and there is no receiver

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 181 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.
  • T Offline
    T Offline
    toralf
    wrote on last edited by
    #1

    I'm using QUdpSocket to send and receive UDP datagrams to/from a different process. I find that sometimes, QUdpSocket::writeDatagram() actually triggers the readyRead() signal, but the "available datagram" is empty and has no sending address. I generally get this when sending to localhost/the loopback address, and I think it only happens when nobody actually listens on the port in question, or there is some other communication issue. The problem is otherwise exactly as described in:

    https://stackoverflow.com/questions/58727702/qt-qudpsocket-triggers-readyread-on-sending-data

    Please refer to that post for example code etc. Unfortunately, there isn't a lot of feedback; the one answer makes no sense, as the socket isn't connected.

    Does anyone here have any insights?

    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