How to send and receive data through local WiFi using tcpsocket or websocket
-
wrote on 20 Dec 2020, 06:21 last edited by
I am using qt 5.14 Windows,through WiFi, i want send data to another laptop in that also qt 5.14, i need to know how to send data over WiFi, both laptops are connected to same WiFi.. Now how to initialize sockets, how to send and how to receive, i don't have any idea.. Please any one guide me...
-
I am using qt 5.14 Windows,through WiFi, i want send data to another laptop in that also qt 5.14, i need to know how to send data over WiFi, both laptops are connected to same WiFi.. Now how to initialize sockets, how to send and how to receive, i don't have any idea.. Please any one guide me...
wrote on 20 Dec 2020, 08:18 last edited by@bhanupro
Your two computers will be connected to the network over TCP/IP. QNetworkAccessManager Class can be used to send requests and receive replies. Or you can use QTcpSocket Class directly There are code demos of both in the documentation.
1/2