kopete/libkopete
Kopete::SocketTimeoutWatcher Class Reference
#include <kopetesockettimeoutwatcher.h>
Inheritance diagram for Kopete::SocketTimeoutWatcher:
Signals | |
void | error (QAbstractSocket::SocketError socketError) |
void | errorInt (int socketError) |
Public Member Functions | |
~SocketTimeoutWatcher () | |
Static Public Member Functions | |
static SocketTimeoutWatcher * | watch (QAbstractSocket *socket, quint32 msecTimeout=15000) |
Detailed Description
Definition at line 31 of file kopetesockettimeoutwatcher.h.
Constructor & Destructor Documentation
Kopete::SocketTimeoutWatcher::~SocketTimeoutWatcher | ( | ) |
Definition at line 60 of file kopetesockettimeoutwatcher.cpp.
Member Function Documentation
|
signal |
Emitted when timeout is reached.
- Note
- socketError is always QAbstractSocket::RemoteHostClosedError
|
signal |
|
static |
Returns new SocketTimeoutWatcher or 0 if SocketTimeoutWatcher was already created for this socket.
SocketTimeoutWatcher watches if outgoing data has been sent out. The implementation check if ACK was received after data has been sent and emits error(QAbstractSocket::SocketError) if ACK hasn't been received before msecTimeout
milliseconds.
- Note
- abort is called on socket when timeout is reached.
Definition at line 35 of file kopetesockettimeoutwatcher.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.