KDECore
KTcpSocket Class Reference
#include <ktcpsocket.h>

Detailed Description
Definition at line 144 of file ktcpsocket.h.
Member Enumeration Documentation
Definition at line 210 of file ktcpsocket.h.
enum KTcpSocket::Error |
- Enumerator:
-
UnknownError ConnectionRefusedError RemoteHostClosedError HostNotFoundError SocketAccessError SocketResourceError SocketTimeoutError NetworkError UnsupportedSocketOperationError
Definition at line 167 of file ktcpsocket.h.
- Enumerator:
-
AutoProxy Use the proxy that KProtocolManager suggests for the connection parameters given. ManualProxy Use the proxy set by setProxy(), if any; otherwise use no proxy.
Definition at line 215 of file ktcpsocket.h.
Definition at line 158 of file ktcpsocket.h.
enum KTcpSocket::State |
- Enumerator:
-
UnconnectedState HostLookupState ConnectingState ConnectedState BoundState ListeningState ClosingState
Definition at line 148 of file ktcpsocket.h.
Constructor & Destructor Documentation
KTcpSocket::KTcpSocket | ( | QObject * | parent = 0 |
) |
Definition at line 354 of file ktcpsocket.cpp.
KTcpSocket::~KTcpSocket | ( | ) |
Definition at line 377 of file ktcpsocket.cpp.
Member Function Documentation
void KTcpSocket::abort | ( | ) |
Definition at line 454 of file ktcpsocket.cpp.
void KTcpSocket::aboutToClose | ( | ) | [signal] |
Reimplemented from QIODevice.
void KTcpSocket::addCaCertificate | ( | const QSslCertificate & | certificate | ) |
Definition at line 598 of file ktcpsocket.cpp.
void KTcpSocket::addCaCertificates | ( | const QList< QSslCertificate > & | certificates | ) |
Definition at line 613 of file ktcpsocket.cpp.
KTcpSocket::SslVersion KTcpSocket::advertisedSslVersion | ( | ) | const |
Definition at line 745 of file ktcpsocket.cpp.
bool KTcpSocket::atEnd | ( | ) | const [virtual] |
Definition at line 384 of file ktcpsocket.cpp.
qint64 KTcpSocket::bytesAvailable | ( | ) | const [virtual] |
Definition at line 390 of file ktcpsocket.cpp.
qint64 KTcpSocket::bytesToWrite | ( | ) | const [virtual] |
Definition at line 396 of file ktcpsocket.cpp.
QList< QSslCertificate > KTcpSocket::caCertificates | ( | ) | const |
Definition at line 619 of file ktcpsocket.cpp.
bool KTcpSocket::canReadLine | ( | ) | const [virtual] |
Definition at line 402 of file ktcpsocket.cpp.
QList< KSslCipher > KTcpSocket::ciphers | ( | ) | const |
Definition at line 625 of file ktcpsocket.cpp.
void KTcpSocket::close | ( | ) | [virtual] |
void KTcpSocket::connected | ( | ) | [signal] |
void KTcpSocket::connectToHost | ( | const KUrl & | url, | |
ProxyPolicy | policy = AutoProxy | |||
) |
Take the hostname and port from url
and connect to them.
The information from a full URL enables the most accurate choice of proxy in case of proxy rules that depend on high-level information like protocol or username.
- See also:
- KProtocolManager::proxyForUrl()
Definition at line 480 of file ktcpsocket.cpp.
void KTcpSocket::connectToHost | ( | const QHostAddress & | hostAddress, | |
quint16 | port, | |||
ProxyPolicy | policy = AutoProxy | |||
) |
Definition at line 470 of file ktcpsocket.cpp.
void KTcpSocket::connectToHost | ( | const QString & | hostName, | |
quint16 | port, | |||
ProxyPolicy | policy = AutoProxy | |||
) |
Definition at line 460 of file ktcpsocket.cpp.
void KTcpSocket::connectToHostEncrypted | ( | const QString & | hostName, | |
quint16 | port, | |||
OpenMode | openMode = ReadWrite | |||
) |
Definition at line 631 of file ktcpsocket.cpp.
void KTcpSocket::disconnected | ( | ) | [signal] |
void KTcpSocket::disconnectFromHost | ( | ) |
Definition at line 490 of file ktcpsocket.cpp.
KTcpSocket::EncryptionMode KTcpSocket::encryptionMode | ( | ) | const |
Definition at line 710 of file ktcpsocket.cpp.
void KTcpSocket::encryptionModeChanged | ( | EncryptionMode | ) | [signal] |
void KTcpSocket::error | ( | KTcpSocket::Error | ) | [signal] |
KTcpSocket::Error KTcpSocket::error | ( | ) | const |
Definition at line 497 of file ktcpsocket.cpp.
bool KTcpSocket::flush | ( | ) |
Definition at line 515 of file ktcpsocket.cpp.
void KTcpSocket::hostFound | ( | ) | [signal] |
void KTcpSocket::ignoreSslErrors | ( | ) | [slot] |
Definition at line 717 of file ktcpsocket.cpp.
bool KTcpSocket::isSequential | ( | ) | const [virtual] |
Definition at line 415 of file ktcpsocket.cpp.
bool KTcpSocket::isValid | ( | ) | const |
Definition at line 521 of file ktcpsocket.cpp.
QHostAddress KTcpSocket::localAddress | ( | ) | const |
Definition at line 527 of file ktcpsocket.cpp.
QSslCertificate KTcpSocket::localCertificate | ( | ) | const |
Definition at line 639 of file ktcpsocket.cpp.
KTcpSocket::SslVersion KTcpSocket::negotiatedSslVersion | ( | ) | const |
Definition at line 751 of file ktcpsocket.cpp.
QString KTcpSocket::negotiatedSslVersionName | ( | ) | const |
Definition at line 760 of file ktcpsocket.cpp.
bool KTcpSocket::open | ( | QIODevice::OpenMode | open | ) | [virtual] |
Definition at line 421 of file ktcpsocket.cpp.
QHostAddress KTcpSocket::peerAddress | ( | ) | const |
Definition at line 533 of file ktcpsocket.cpp.
QList< QSslCertificate > KTcpSocket::peerCertificateChain | ( | ) | const |
Definition at line 645 of file ktcpsocket.cpp.
QString KTcpSocket::peerName | ( | ) | const |
Definition at line 539 of file ktcpsocket.cpp.
quint16 KTcpSocket::peerPort | ( | ) | const |
Definition at line 545 of file ktcpsocket.cpp.
KSslKey KTcpSocket::privateKey | ( | ) | const |
Definition at line 651 of file ktcpsocket.cpp.
QNetworkProxy KTcpSocket::proxy | ( | ) | const |
qint64 KTcpSocket::readBufferSize | ( | ) | const |
Definition at line 557 of file ktcpsocket.cpp.
void KTcpSocket::readyRead | ( | ) | [signal] |
Reimplemented from QIODevice.
KSslCipher KTcpSocket::sessionCipher | ( | ) | const |
Definition at line 657 of file ktcpsocket.cpp.
void KTcpSocket::setAdvertisedSslVersion | ( | KTcpSocket::SslVersion | version | ) |
Definition at line 739 of file ktcpsocket.cpp.
void KTcpSocket::setCaCertificates | ( | const QList< QSslCertificate > & | certificates | ) |
Definition at line 663 of file ktcpsocket.cpp.
void KTcpSocket::setCiphers | ( | const QList< KSslCipher > & | ciphers | ) |
Definition at line 669 of file ktcpsocket.cpp.
void KTcpSocket::setLocalCertificate | ( | const QString & | fileName, | |
QSsl::EncodingFormat | format = QSsl::Pem | |||
) |
Definition at line 685 of file ktcpsocket.cpp.
void KTcpSocket::setLocalCertificate | ( | const QSslCertificate & | certificate | ) |
Definition at line 679 of file ktcpsocket.cpp.
void KTcpSocket::setPrivateKey | ( | const QString & | fileName, | |
KSslKey::Algorithm | algorithm = KSslKey::Rsa , |
|||
QSsl::EncodingFormat | format = QSsl::Pem , |
|||
const QByteArray & | passPhrase = QByteArray() | |||
) |
Definition at line 698 of file ktcpsocket.cpp.
void KTcpSocket::setPrivateKey | ( | const KSslKey & | key | ) |
Definition at line 692 of file ktcpsocket.cpp.
void KTcpSocket::setProxy | ( | const QNetworkProxy & | proxy | ) |
void KTcpSocket::setReadBufferSize | ( | qint64 | size | ) |
Definition at line 569 of file ktcpsocket.cpp.
Definition at line 503 of file ktcpsocket.cpp.
void KTcpSocket::startClientEncryption | ( | ) | [slot] |
Definition at line 724 of file ktcpsocket.cpp.
KTcpSocket::State KTcpSocket::state | ( | ) | const |
Definition at line 575 of file ktcpsocket.cpp.
void KTcpSocket::stateChanged | ( | State | ) | [signal] |
bool KTcpSocket::waitForBytesWritten | ( | int | msecs | ) | [virtual] |
bool KTcpSocket::waitForConnected | ( | int | msecs = 30000 |
) |
Definition at line 581 of file ktcpsocket.cpp.
bool KTcpSocket::waitForDisconnected | ( | int | msecs = 30000 |
) |
Definition at line 589 of file ktcpsocket.cpp.
bool KTcpSocket::waitForEncrypted | ( | int | msecs = 30000 |
) |
Definition at line 704 of file ktcpsocket.cpp.
bool KTcpSocket::waitForReadyRead | ( | int | msecs = 30000 |
) | [virtual] |
The documentation for this class was generated from the following files: