Collecting the data from multiple servers in fortune client server program
-
Its like in hotel the client system will be ordering the menu and at the client end and at server end chef can view the order. i have chosen tcpsosket and tcpservers to transfer the data and at the server side storing the order in the sqlite databse. i want to ask how to connect multiple clients, how to make sever keep listening all the clients. and the message should appear automatically on the server side screen as soon client order.(i mean i don't want to keep any buttons) please help, sorry for my english :)
-
look at "threadedfortuneserver":http://qt-project.org/doc/qt-4.8/network-threadedfortuneserver.html
also i'd recommend you tutorials from Bryan:
from "C++ Qt 65 - QTcpSocket basics":http://voidrealms.com/viewtutorial.aspx?id=44 to "C++ Qt 70 Advanced Asynchronous QTcpServer with QThreadPool":http://voidrealms.com/viewtutorial.aspx?id=39