Topic Publisher and Subscriber for Network Programming project
All 3 programs are built with Qt Creator 4.11.0 - Qt 5.12.8
All threads with signal-slot connections are thread-safe with all threads have equal priorities.
{
"command": "STOP PUBLISHING",
"topic": [topic]
}
{
"command": "PUBLISHING",
[data]
}
{
"command": "START PUBLISHING",
"topic": [topic]
}
{
"command": "QUIT"
}
{
"command": "CONNECT",
{
Server then respond with CONNECTACK
{
"command": "STOP SUBSCRIBING",
"topic": [topic]
}
{
"command": "GET ALL TOPICS",
}
{
"command": "START SUBSCRIBING",
"topic": [topic]
}
{
"command": "QUIT"
}
{
"command": "CONNECTACK",
{
Server transfer data from publisher to subscriber
{
[data],
"topic": [topic]
}