Hello,

here's the code of the redefined method run() of QThread class =>
void run() override

    {

        srv = new (std::nothrow) tcp_server(ised_win_raw_ptr);

#ifdef DEBUG

        qDebug() << "listener's thread => " << thread();

#endif

        terminate_ = false;

        while ( !terminate_ ) if ( !srv->isListening() )
srv->listen(QHostAddress::Any, port);

#ifdef DEBUG

        qDebug() << "Deleting the ised_tcp_server object.";

#endif

        srv->close(); // Closes the server. The server will no longer
listen for incoming connections.

        delete srv;

    }

The program connects to 9000 port for listening.

Using the netcat command
nc -vv 127.0.0.1 9000

yields

PC_NAME [127.0.0.1] 9000 (?) open

Then I typed start and hit Enter.

The break point has been set in incomingConnection which is redefined
in the tcp_server class inheriting QTcpServer.
Debugger did not paused in the method body when netcat connected to the port.


Solutions?
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to