15 if (!
_server.listen(QHostAddress::AnyIPv4, port) || !
_server.isListening())
16 qFatal(
"Cannot bind to TCP port %d (incoming SSL clients)",
int(port));
36 while ((sock =
_server.nextPendingConnection()) !=
nullptr) {
37 auto* client =
new Client(sock);
void newClientConnection()
Handle new client connection.
ListenServer(quint16 port, QObject *parent)
Initialize listenServer to listen on specific port.
void newClient(Client *client)