Enumerations |
| EncryptionMode | { UnencryptedMode, SslClientMode, SslServerMode } |
| Error | { UnknownError, ConnectionRefusedError, RemoteHostClosedError, HostNotFoundError, SocketAccessError, SocketResourceError, SocketTimeoutError, NetworkError, UnsupportedSocketOperationError } |
| ProxyPolicy | { AutoProxy, ManualProxy } |
| SslVersion | { UnknownSslVersion, SslV2, SslV3, TlsV1, SslV3_1, AnySslVersion } |
| State | { UnconnectedState, HostLookupState, ConnectingState, ConnectedState, BoundState, ListeningState, ClosingState } |
Signals |
| | aboutToClose () |
| | bytesWritten (, long bytes) |
| | connected () |
| | disconnected () |
| | encrypted () |
| | encryptionModeChanged (, KTcpSocket.EncryptionMode a0) |
| | error (, KTcpSocket.Error a0) |
| | hostFound () |
| | proxyAuthenticationRequired (, QNetworkProxy proxy, QAuthenticator authenticator) |
| | readyRead () |
| | sslErrors (, [KSslError] errors) |
| | stateChanged (, KTcpSocket.State a0) |
Methods |
| | __init__ (self, QObject parent=0) |
| | abort (self) |
| | aboutToClose (self) |
| | addCaCertificate (self, QSslCertificate certificate) |
| | addCaCertificates (self, [QSslCertificate] certificates) |
| KTcpSocket.SslVersion | advertisedSslVersion (self) |
| bool | atEnd (self) |
| long | bytesAvailable (self) |
| long | bytesToWrite (self) |
| | bytesWritten (self, long bytes) |
| [QSslCertificate] | caCertificates (self) |
| bool | canReadLine (self) |
| [KSslCipher] | ciphers (self) |
| | close (self) |
| | connectToHost (self, QString hostName, int port, KTcpSocket.ProxyPolicy policy=KTcpSocket.AutoProxy) |
| | connectToHost (self, QHostAddress hostAddress, int port, KTcpSocket.ProxyPolicy policy=KTcpSocket.AutoProxy) |
| | connectToHost (self, KUrl url, KTcpSocket.ProxyPolicy policy=KTcpSocket.AutoProxy) |
| | connectToHostEncrypted (self, QString hostName, int port, QIODevice.OpenMode openMode=QIODevice.ReadWrite) |
| | connected (self) |
| | disconnectFromHost (self) |
| | disconnected (self) |
| | encrypted (self) |
| KTcpSocket.EncryptionMode | encryptionMode (self) |
| | encryptionModeChanged (self, KTcpSocket.EncryptionMode a0) |
| KTcpSocket.Error | error (self) |
| | error (self, KTcpSocket.Error a0) |
| bool | flush (self) |
| | hostFound (self) |
| | ignoreSslErrors (self) |
| bool | isSequential (self) |
| bool | isValid (self) |
| QHostAddress | localAddress (self) |
| QSslCertificate | localCertificate (self) |
| KTcpSocket.SslVersion | negotiatedSslVersion (self) |
| QString | negotiatedSslVersionName (self) |
| bool | open (self, QIODevice.OpenMode open) |
| QHostAddress | peerAddress (self) |
| [QSslCertificate] | peerCertificateChain (self) |
| QString | peerName (self) |
| int | peerPort (self) |
| KSslKey | privateKey (self) |
| QNetworkProxy | proxy (self) |
| | proxyAuthenticationRequired (self, QNetworkProxy proxy, QAuthenticator authenticator) |
| long | readBufferSize (self) |
| | readyRead (self) |
| KSslCipher | sessionCipher (self) |
| | setAdvertisedSslVersion (self, KTcpSocket.SslVersion version) |
| | setCaCertificates (self, [QSslCertificate] certificates) |
| | setCiphers (self, [KSslCipher] ciphers) |
| | setLocalCertificate (self, QSslCertificate certificate) |
| | setLocalCertificate (self, QString fileName, QSsl.EncodingFormat format=QSsl.Pem) |
| | setPrivateKey (self, KSslKey key) |
| | setPrivateKey (self, QString fileName, KSslKey.Algorithm algorithm=KSslKey.Rsa, QSsl.EncodingFormat format=QSsl.Pem, QByteArray passPhrase=QByteArray()) |
| | setProxy (self, QNetworkProxy proxy) |
| | setReadBufferSize (self, long size) |
| [KSslError] | sslErrors (self) |
| | sslErrors (self, [KSslError] errors) |
| | startClientEncryption (self) |
| KTcpSocket.State | state (self) |
| | stateChanged (self, KTcpSocket.State a0) |
| bool | waitForBytesWritten (self, int msecs) |
| bool | waitForConnected (self, int msecs=30000) |
| bool | waitForDisconnected (self, int msecs=30000) |
| bool | waitForEncrypted (self, int msecs=30000) |
| bool | waitForReadyRead (self, int msecs=30000) |