Results 1 to 1 of 1

Thread: HELP ME - socket error in linux

Threaded View

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

    Default HELP ME - socket error in linux

    Hi guys

    i have a really big problem.
    Well, i have a server-client software written by university friends using qt4.4.

    In the server we have this connect

    Qt Code:
    1. QObject::connect(socketTcpIp, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(connectionerror(QAbstractSocket::SocketError)));
    2. }
    3.  
    4. void Server::connectionerror(){
    5. qDebug(" Plug out the ethernet cable");
    6.  
    7. }
    To copy to clipboard, switch view to plain text mode 

    well, the problem is with the SIGNAL.
    Under Windows Xp, when I plug out the cable the signal is normally emitted,
    but under linux (tried on gentoo and ubuntu) noting happens(the signal is not emitted).
    I did some checks under my linux box, and I saw that plugging out the cable the socket is not closet by operating system(netstat -a say this).
    Then, if I plugged in the cable again, the connection become restored.

    Really thanks
    Last edited by jpn; 22nd September 2008 at 07:29. Reason: missing [code] tags

Similar Threads

  1. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12

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.