Collecting the data from multiple servers in fortune client server program
-
hello everyone,
I am using qt fortune client server program
I have a doubt,Is it possible to take data from multiple server at a time at the client end.If possible please explain with the code snippet,
Thanks a lot -
I mean whether the client is able to listen multiple servers
-
For understanding your goals, can you explain what are you trying to do?
-
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