Simple client/server example ?
Unsolved
General and Desktop
-
Hi,
I am new to network programming in Qt
I am hoping to write a console client and server application. The client send QByteArray and the server receives and process the QByteArray. The client and server are separate application and may reside on different computer.
Which examples from here would be a good starting point ?
https://doc.qt.io/qt-5/examples-network.html
Cheers
-
@nicholas_yue The simplest one is https://doc.qt.io/qt-5/qtnetwork-loopback-example.html
It has GUI and client/server in one app, but this isn't an issue: remove the UI stuff and separate client and server code. -
My experience is that examples included in Qt are misleading for people just learning how it works. I'd suggest you use this example on the wiki instead as first step
-
This post is deleted!