#include <tcpslavebase.h>
Inheritance diagram for KIO::TCPSlaveBase:

Protected Methods | |
| ssize_t | Write (const void *data, ssize_t len) |
| ssize_t | Read (void *data, ssize_t len) |
| ssize_t | ReadLine (char *data, ssize_t len) |
| unsigned short int | GetPort (unsigned short int p) |
| bool | ConnectToHost (const QString &host, unsigned int port, bool sendError) |
| void | CloseDescriptor () |
| bool | AtEOF () |
| bool | InitializeSSL () |
| void | CleanSSL () |
| ssize_t | write (const void *data, ssize_t len) |
| ssize_t | read (void *data, ssize_t len) |
| ssize_t | readLine (char *data, ssize_t len) |
| void | setBlockSize (int sz) |
| unsigned short int | port (unsigned short int) |
| bool | connectToHost (const QString &host, unsigned int port, bool sendError=true) |
| bool | usingTLS () |
| bool | canUseTLS () |
| int | startTLS () |
| void | stopTLS () |
| void | closeDescriptor () |
| bool | atEnd () |
| void | setSSLMetaData () |
| bool | initializeSSL () |
| void | cleanSSL () |
| bool | isConnectionValid () |
| int | connectResult () |
| bool | waitForResponse (int t) |
| void | setBlockConnection (bool b) |
| void | setConnectTimeout (int t) |
| bool | isSSLTunnelEnabled () |
| void | setEnableSSLTunnel (bool enable) |
| void | setRealHost (const QString &realHost) |
| virtual void | virtual_hook (int id, void *data) |
Slave implementations should simply inherit SlaveBase
A call to foo() results in a call to slotFoo() on the other end.
Definition at line 48 of file tcpslavebase.h.
|
|
Returns true when end of data is reached Referenced by AtEOF(). |
|
|
Definition at line 97 of file tcpslavebase.h. References atEnd(). |
|
|
Can we use TLS?
|
|
|
Cleans up all SSL settings. Referenced by CleanSSL(). |
|
|
Definition at line 107 of file tcpslavebase.h. References cleanSSL(). |
|
|
Closes the current file descriptor. Call this function to properly close up the socket since it also takes care to prroperly close the stdio fstream stuff, as well as sets the socket back to -1 Referenced by CloseDescriptor(). |
|
|
Definition at line 92 of file tcpslavebase.h. References closeDescriptor(). |
|
|
Returns the status of the connection.
This function allows you to invoke ConnectToHost with the
|
|
||||||||||||||||
|
Performs the initial TCP connection stuff and/or SSL handshaking as necessary. Please note that unlike its deprecated counterpart, this function allows you to disable any error message from being sent back to the calling application! You can then use the connectResult() function to determine the result of the request for connection.
Referenced by ConnectToHost(). |
|
||||||||||||||||
|
Definition at line 86 of file tcpslavebase.h. References connectToHost(), and port(). |
|
|
Definition at line 81 of file tcpslavebase.h. References port(). |
|
|
Initializs all SSL variables Referenced by InitializeSSL(). |
|
|
Definition at line 102 of file tcpslavebase.h. References initializeSSL(). |
|
|
Determines whether or not we are still connected to the remote machine. This method may fail to detect a closed SSL connection.
return |
|
|
Returns true if SSL tunneling is enabled.
|
|
|
Determines the appropiate port to use. This functions attempts to discover the appropriate port.
Referenced by ConnectToHost(), and GetPort(). |
|
||||||||||||
|
This function acts like standard read function call except it is also capable of deciphering SSL data as well as handling data over SOCKSified connections.
Referenced by Read(). |
|
||||||||||||
|
Definition at line 71 of file tcpslavebase.h. References KIO::SlaveBase::data(), and read(). |
|
||||||||||||
|
Same as above except it reads data one line at a time. Referenced by ReadLine(). |
|
||||||||||||
|
Definition at line 76 of file tcpslavebase.h. References KIO::SlaveBase::data(), and readLine(). |
|
|
Sets the mode of the connection to blocking or non-blocking.
Be sure to call this function before calling ConnectToHost. Otherwise, this setting will not have any effect until the next
|
|
|
Sets the maximum size of blocks read in during calls to readLine(). This allows a slave to optimize for the protocol which it implements. Ideally this should be (common_line_length+1) or so. Making this too large will have adverse effects on performance. Initial/default value is 256(bytes) |
|
|
Sets how long to wait for orignally connecting to the requested before timinig out.
Be sure to call this function before calling ConnectToHost, otherwise the setting will not take effect until the next call to
|
|
|
Set up SSL tunneling mode.
Calling this function with a Note that once you have successfully "tunneled" through the proxy server you must call this function with its argument set to false to properly connect to the SSL site.
|
|
|
Sets up the the real hostname for an SSL connection that goes through a proxy server. This function is essential in making sure that the real hostname is used for validating certificates from SSL sites!
|
|
|
Call this if you use persistent connections and want all the metadata restored. This is particularily important for SSL sessions since the app needs to know the state of connection, certificates, etc. |
|
|
Start using TLS on the connection.
|
|
|
Stop using TLS on the connection. |
|
|
Are we using TLS?
|
|
|
Wait for some type of activity on the socket for the period specified by
|
|
||||||||||||
|
This function acts like standard write function call except it is also capable of making SSL or SOCKS connections.
Referenced by Write(). |
|
||||||||||||
|
Definition at line 66 of file tcpslavebase.h. References KIO::SlaveBase::data(), and write(). |
1.2.18