[SOLVED] Running multiple QTcpServers in the same app
-
Hello, I'm asking for some general advice.
I have an app which needs to listen to two different ports. Each port serves a totally different function. Do I instantiate separate QTcpServers in order to serve these different ports, or is this considered bad form? If I am supposed to be using one QTcpServer, how do I specify multiple ports to listen to (without listening to all of them)?
Thanks,
-W -
Hi,
AFAIK, QTcpServer only listen to one port at a time.
Since both servers will have different purposes, I would encapsulate each to separate clearly both functionality
Hope it helps
-
Okay, that sounds like a good idea. Thank you!
-
Please give me solution with solved....Script
Warning...1
'FileView' has not been declaredvoid updateProgress(FileView* view, qint64 currentPos);
Warning...2
expected ',' or '...' before 'state'void setButtonState(FileView::TransferState state);
Warning...3
'Ui' does not name a type
Ui::TransferWindow ui;
Warning...4
template argument 1 is invalid
QList<FileView> pendingSendList;
Warning...5
request for member 'clear' in '((lmcTransferWindows*)this)->lmcTransferWindow::pendingSendList, which is of non-class type 'int'
pendingSendList.clear();
-
@ctsiitmail: please Stop spamming other people's thread with your unrelated questions. Open your own