Unsolved QTcpServer & QTcpSocket passes unintended messages.
-
Good morning,
I am trying to write simple server and client using QT. The main idea is to make server that passes messages to subscribed clients from other clients that sends messages to server on topic.
My problem is that under load it passes messages to client that is not subscribed to topic. Example: Client1 is sending a lot of data to topic Example:topic1 and Example:topic2. The Client2 has subscribed to topic Example:topic1, and he is reciving messages from both "Example:topic1" and "Example:topic2". I have checked twice, my UniCom does not sends any messages to unsubscribed clients.
Mostly the problem occurs if i run UniCom and Plugin locally.
Any advice, what i am doing wrong?
Using QT 5.12 on antergos.Thank you in advance for any help. -
@Adames said in QTcpServer & QTcpSocket passes unintended messages.:
server that passes messages to subscribed clients from other clients that sends messages to server on topic.
I'd go with Qt MQTT module and a MQTT broker (i.e. Mosquitto) before inventing the wheel again...