Results 1 to 7 of 7

Thread: QNativeSocketEngine

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QNativeSocketEngine

    Hi I am encountering a problem with my program when it try to connect to another machine using QTCPSocket. I keep getting the message QNativeSocketEngine::write() was not called in QAbstractSocket::ConnectState continuously at a very fast interval.
    Below is some code I have to connect to a Server.

    Qt Code:
    1. tcpSocket1 = new QTcpSocket();
    2. tcpSocket1->connectToHost("192.168.0.101", 600, QIODevice::ReadWrite);
    3. .
    4. .
    5. .
    6. connect( tcpSocket, SIGNAL(readyRead()), this, SLOT(read_data()));
    7. connect( tcpSocket, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(displayError(QAbstractSocket::SocketError)));
    To copy to clipboard, switch view to plain text mode 

    If there is anyone who can explain what is happening and what a solution is I would like to hear it.

    Thanks
    Last edited by jpn; 1st August 2008 at 21:25. Reason: missing [code] tags

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.