Questions tagged [qtcpserver]

QTcpServer is a Qt class embedding a TCP-based server.

The QTcpServer class provides a TCP-based server.

This class makes it possible to accept incoming TCP connections. You can specify the port or have QTcpServer pick one automatically. You can listen on a specific address or on all the machine's addresses.

The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.

140 questions
0
votes
0 answers

Best approach to obtain the port of a QTcpServer in a child process?

What is the best approach to retrieve the port number a QTcpServer in a child process is listening on, assuming we do not want to use fixed port numbers for our TCP servers? So far I have been experimenting with the following two approaches: Start…
Ton van den Heuvel
  • 10,157
  • 6
  • 43
  • 82
0
votes
2 answers

Console Chat Using QTcpSocket and QTcpServer

I want to write a console chat program in qt framework.I have a problem with sending messages. Client sends messages to server but server doesn't take the messages until client program is closed.When client is closed, server displays all messages.I…
Viplime
  • 141
  • 4
  • 14
-1
votes
1 answer

QtcpServer: Qt how to get python string to label

hello everyone I use python send a string to qt but i do not know how show the string on a label can anyone help me ??? my mainwindow.cpp is MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { …
robinshion
  • 33
  • 1
  • 7
-1
votes
1 answer

Trying to connect QTcpServer to GUI with signals

I created a connection between server and client, the connection works fine in console, but i coudn't connect my QTcpServer class to GUI with signals and slots. Here is my code : ServerTCP.cpp ServerTcp :: ServerTcp (QWidget *parent) { …
-2
votes
1 answer

Qt Authentication users with QTcpServer (with username and password)

I want to write a chat program with login page. I want to send request from client to server with username and password, then server receives, verifies and then responds to client. Can anyone please guide me of what QT class should I use or can tell…
1 2 3
9
10