Results 1 to 3 of 3

Thread: Notification for network disconnection

  1. #1
    Join Date
    Feb 2009
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Notification for network disconnection

    Hi,
    I am using QAbstractSocket with type as "tcp". I want to know whether I can get a notification whenver there is a problem in network and connection is broken?? If so how can I do it??

  2. #2
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: Notification for network disconnection

    Are you building a TCP socket off of QAbstractSocket when there is QTcpSocket? Because all you need to do when you use QTcpSocket is just create 2 slots and connect them to error() and state() of the QTcpSocket and you can have tons of errors based on what is happening.
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

  3. #3
    Join Date
    Feb 2009
    Posts
    16
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Notification for network disconnection

    Hi,
    In case I connect the error() signal of the socket will I be able to get the notification of when the connection is breaking without me invoking any of the APIs ??

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.