PDA

View Full Version : Sample code server chat gui and client chat gui TCP / IP



giorgik
14th March 2018, 18:58
Hello everyone, I would need an example code server chat gui and client chat gui TCP / IP to be studied using Qt 5.9.1 on Windows 7. What I then want to get at the end is a GUI chat between a PC and a smartphone (using Android Studio 3.0.1) using TCP / IP over wifi.
Thank you all for your kind attention and help. :)

high_flyer
14th March 2018, 23:35
Why not start with the Qt examples?
http://doc.qt.io/qt-5/qtnetwork-network-chat-example.html

giorgik
15th March 2018, 09:11
Hi high_flyer, I'm going to see this example you indicated to me. In practice what I would like to do is a TCP / IP server on wifi (static IP addresses) that must be able to receive and send strings. The same thing I have to do on the Android client side for the smartphone.

high_flyer
15th March 2018, 12:58
Wifi is not relevant from the perspective of your code - your application requests access to a url, that system will provide it.
What is the involved hardware is not important.
Start with the example it will give you the first basics of networking.