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 390 of file ktcpsocket.cpp.
| KTcpSocket::~KTcpSocket | ( | ) |
Definition at line 415 of file ktcpsocket.cpp.
Member Function Documentation
| void KTcpSocket::abort | ( | ) |
Definition at line 492 of file ktcpsocket.cpp.
| void KTcpSocket::aboutToClose | ( | ) | [signal] |
Reimplemented from QIODevice.
| void KTcpSocket::addCaCertificate | ( | const QSslCertificate & | certificate | ) |
Definition at line 642 of file ktcpsocket.cpp.
| void KTcpSocket::addCaCertificates | ( | const QList< QSslCertificate > & | certificates | ) |
Definition at line 657 of file ktcpsocket.cpp.
| KTcpSocket::SslVersion KTcpSocket::advertisedSslVersion | ( | ) | const |
Definition at line 789 of file ktcpsocket.cpp.
| bool KTcpSocket::atEnd | ( | ) | const [virtual] |
Definition at line 422 of file ktcpsocket.cpp.
| qint64 KTcpSocket::bytesAvailable | ( | ) | const [virtual] |
Definition at line 428 of file ktcpsocket.cpp.
| qint64 KTcpSocket::bytesToWrite | ( | ) | const [virtual] |
Definition at line 434 of file ktcpsocket.cpp.
| void KTcpSocket::bytesWritten | ( | qint64 | bytes | ) | [signal] |
Reimplemented from QIODevice.
| QList< QSslCertificate > KTcpSocket::caCertificates | ( | ) | const |
Definition at line 663 of file ktcpsocket.cpp.
| bool KTcpSocket::canReadLine | ( | ) | const [virtual] |
Definition at line 440 of file ktcpsocket.cpp.
| QList< KSslCipher > KTcpSocket::ciphers | ( | ) | const |
Definition at line 669 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 524 of file ktcpsocket.cpp.
| void KTcpSocket::connectToHost | ( | const QHostAddress & | hostAddress, | |
| quint16 | port, | |||
| ProxyPolicy | policy = AutoProxy | |||
| ) |
Definition at line 514 of file ktcpsocket.cpp.
| void KTcpSocket::connectToHost | ( | const QString & | hostName, | |
| quint16 | port, | |||
| ProxyPolicy | policy = AutoProxy | |||
| ) |
Definition at line 498 of file ktcpsocket.cpp.
| void KTcpSocket::connectToHostEncrypted | ( | const QString & | hostName, | |
| quint16 | port, | |||
| OpenMode | openMode = ReadWrite | |||
| ) |
Definition at line 675 of file ktcpsocket.cpp.
| void KTcpSocket::disconnected | ( | ) | [signal] |
| void KTcpSocket::disconnectFromHost | ( | ) |
Definition at line 534 of file ktcpsocket.cpp.
| KTcpSocket::EncryptionMode KTcpSocket::encryptionMode | ( | ) | const |
Definition at line 754 of file ktcpsocket.cpp.
| void KTcpSocket::encryptionModeChanged | ( | EncryptionMode | ) | [signal] |
| void KTcpSocket::error | ( | KTcpSocket::Error | ) | [signal] |
| KTcpSocket::Error KTcpSocket::error | ( | ) | const |
Definition at line 541 of file ktcpsocket.cpp.
| bool KTcpSocket::flush | ( | ) |
Definition at line 559 of file ktcpsocket.cpp.
| void KTcpSocket::hostFound | ( | ) | [signal] |
| void KTcpSocket::ignoreSslErrors | ( | ) | [slot] |
Definition at line 761 of file ktcpsocket.cpp.
| bool KTcpSocket::isSequential | ( | ) | const [virtual] |
Definition at line 453 of file ktcpsocket.cpp.
| bool KTcpSocket::isValid | ( | ) | const |
Definition at line 565 of file ktcpsocket.cpp.
| QHostAddress KTcpSocket::localAddress | ( | ) | const |
Definition at line 571 of file ktcpsocket.cpp.
| QSslCertificate KTcpSocket::localCertificate | ( | ) | const |
Definition at line 683 of file ktcpsocket.cpp.
| KTcpSocket::SslVersion KTcpSocket::negotiatedSslVersion | ( | ) | const |
Definition at line 795 of file ktcpsocket.cpp.
| QString KTcpSocket::negotiatedSslVersionName | ( | ) | const |
Definition at line 804 of file ktcpsocket.cpp.
| bool KTcpSocket::open | ( | QIODevice::OpenMode | open | ) | [virtual] |
Definition at line 459 of file ktcpsocket.cpp.
| QHostAddress KTcpSocket::peerAddress | ( | ) | const |
Definition at line 577 of file ktcpsocket.cpp.
| QList< QSslCertificate > KTcpSocket::peerCertificateChain | ( | ) | const |
Definition at line 689 of file ktcpsocket.cpp.
| QString KTcpSocket::peerName | ( | ) | const |
Definition at line 583 of file ktcpsocket.cpp.
| quint16 KTcpSocket::peerPort | ( | ) | const |
Definition at line 589 of file ktcpsocket.cpp.
| KSslKey KTcpSocket::privateKey | ( | ) | const |
Definition at line 695 of file ktcpsocket.cpp.
| QNetworkProxy KTcpSocket::proxy | ( | ) | const |
| void KTcpSocket::proxyAuthenticationRequired | ( | const QNetworkProxy & | proxy, | |
| QAuthenticator * | authenticator | |||
| ) | [signal] |
| qint64 KTcpSocket::readBufferSize | ( | ) | const |
Definition at line 601 of file ktcpsocket.cpp.
| qint64 KTcpSocket::readData | ( | char * | data, | |
| qint64 | maxSize | |||
| ) | [protected, virtual] |
| void KTcpSocket::readyRead | ( | ) | [signal] |
Reimplemented from QIODevice.
| KSslCipher KTcpSocket::sessionCipher | ( | ) | const |
Definition at line 701 of file ktcpsocket.cpp.
| void KTcpSocket::setAdvertisedSslVersion | ( | KTcpSocket::SslVersion | version | ) |
Definition at line 783 of file ktcpsocket.cpp.
| void KTcpSocket::setCaCertificates | ( | const QList< QSslCertificate > & | certificates | ) |
Definition at line 707 of file ktcpsocket.cpp.
| void KTcpSocket::setCiphers | ( | const QList< KSslCipher > & | ciphers | ) |
Definition at line 713 of file ktcpsocket.cpp.
| void KTcpSocket::setLocalCertificate | ( | const QString & | fileName, | |
| QSsl::EncodingFormat | format = QSsl::Pem | |||
| ) |
Definition at line 729 of file ktcpsocket.cpp.
| void KTcpSocket::setLocalCertificate | ( | const QSslCertificate & | certificate | ) |
Definition at line 723 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 742 of file ktcpsocket.cpp.
| void KTcpSocket::setPrivateKey | ( | const KSslKey & | key | ) |
Definition at line 736 of file ktcpsocket.cpp.
| void KTcpSocket::setProxy | ( | const QNetworkProxy & | proxy | ) |
| void KTcpSocket::setReadBufferSize | ( | qint64 | size | ) |
Definition at line 613 of file ktcpsocket.cpp.
Definition at line 547 of file ktcpsocket.cpp.
| void KTcpSocket::startClientEncryption | ( | ) | [slot] |
Definition at line 768 of file ktcpsocket.cpp.
| KTcpSocket::State KTcpSocket::state | ( | ) | const |
Definition at line 619 of file ktcpsocket.cpp.
| void KTcpSocket::stateChanged | ( | State | ) | [signal] |
| bool KTcpSocket::waitForBytesWritten | ( | int | msecs | ) | [virtual] |
| bool KTcpSocket::waitForConnected | ( | int | msecs = 30000 |
) |
Definition at line 625 of file ktcpsocket.cpp.
| bool KTcpSocket::waitForDisconnected | ( | int | msecs = 30000 |
) |
Definition at line 633 of file ktcpsocket.cpp.
| bool KTcpSocket::waitForEncrypted | ( | int | msecs = 30000 |
) |
Definition at line 748 of file ktcpsocket.cpp.
| bool KTcpSocket::waitForReadyRead | ( | int | msecs = 30000 |
) | [virtual] |
| qint64 KTcpSocket::writeData | ( | const char * | data, | |
| qint64 | maxSize | |||
| ) | [protected, virtual] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference