Help me about QTcpServer
htn_vn last edited by
I am newbie in qt creator but I have to do more than one following requirements.
I have three clients and a server
I assume all three clients are connected to the server.
now, if a client sends the packet to the server, the server will send that packet to all three workstations,
use QTcpServer solve this problem like?
koahnig last edited by
welcome to devnet
Yes, QTcpServer helps you to solve this problem. However, it does not solve the problem per se. QTcpServer is a mechanism to establish the communication through QTcpSockets which are handling on both the side the communication.
Please check out the fortune "client":http://qt-project.org/doc/qt-4.8/network-fortuneclient.html and "server":http://qt-project.org/doc/qt-4.8/network-fortuneserver.html example. This should give you some ideas of how to implement.