qt - qsocketnotifier fires activated signal continuously even when there is 0 data on socket -


I am trying to use qsocketnotifier with a TCP socket, the problem is that the qsocketnotifier is continuously "active" socket There is no data to read but I have tried it again on the socket in "Blocked" and "Blocked" mode. Is the behavior the same any body had seen it at any time? I'm sticking to the code piece below

  QSocketNotifier * Notifier = New QSocketNotifier (gwSocketId, QSocketNotifier :: Read, this); Connect (Notifier, Signal (Active (Active)), This, Slot (Process Client Events ()));    

From:

Although class is QSocketNotifier It is usually used for sockets for other types of devices. QTcpSocket and QUdpSocket provide notification through signals, so there is no need to generally use QSocketNotifier on them.

, and therefore the signal is that I think this sign is what you are after.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -