24 #ifndef _TCP_SLAVEBASE_H
25 #define _TCP_SLAVEBASE_H
27 #include <sys/types.h>
31 #include <tdeio/slavebase.h>
48 TCPSlaveBase(
unsigned short int defaultPort,
const TQCString &protocol,
49 const TQCString &poolSocket,
const TQCString &appSocket);
51 TCPSlaveBase(
unsigned short int defaultPort,
const TQCString &protocol,
52 const TQCString &poolSocket,
const TQCString &appSocket,
63 KDE_DEPRECATED ssize_t
Write(
const void *data, ssize_t len) {
return write( data, len ); }
68 KDE_DEPRECATED ssize_t
Read(
void *data, ssize_t len) {
return read( data, len ); }
73 KDE_DEPRECATED ssize_t
ReadLine(
char *data, ssize_t len) {
return readLine( data, len ); }
78 KDE_DEPRECATED
unsigned short int GetPort(
unsigned short int p) {
return port(p); }
83 KDE_DEPRECATED
bool ConnectToHost(
const TQString &host,
unsigned int port,
84 bool sendError ) {
return connectToHost( host, port, sendError ); }
94 KDE_DEPRECATED
bool AtEOF() {
return atEnd(); }
117 ssize_t write(
const void *data, ssize_t len);
129 ssize_t read(
void *data, ssize_t len);
134 ssize_t readLine(
char *data, ssize_t len);
143 void setBlockSize(
int sz);
153 unsigned short int port(
unsigned short int _port);
173 bool connectToHost(
const TQString &host,
unsigned int port,
174 bool sendError =
true );
192 bool usingTLS()
const;
234 void closeDescriptor();
249 void setSSLMetaData();
255 bool initializeSSL();
272 bool isConnectionValid();
296 bool waitForResponse(
int t );
307 void setBlockConnection(
bool b );
319 void setConnectTimeout(
int t );
326 bool isSSLTunnelEnabled();
343 void setEnableSSLTunnel(
bool enable );
355 void setRealHost(
const TQString& realHost );
358 void doConstructorStuff();
361 int verifyCertificate();
364 void certificatePrompt();
367 bool userAborted()
const;
372 unsigned short int m_iPort;
373 unsigned short int m_iDefaultPort;
374 TQCString m_sServiceName;
378 bool doSSLHandShake(
bool sendError );
381 virtual void virtual_hook(
int id,
void* data );
383 class TcpSlaveBasePrivate;
384 TcpSlaveBasePrivate *d;
KDE_DEPRECATED bool AtEOF()
There are two classes that specifies the protocol between application (job) and tdeioslave.
KDE_DEPRECATED ssize_t Read(void *data, ssize_t len)
KDE_DEPRECATED ssize_t ReadLine(char *data, ssize_t len)
There are two classes that specifies the protocol between application (job) and tdeioslave.
KDE_DEPRECATED unsigned short int GetPort(unsigned short int p)
A namespace for TDEIO globals.
KDE_DEPRECATED ssize_t Write(const void *data, ssize_t len)
KDE_DEPRECATED void CleanSSL()
KDE_DEPRECATED bool InitializeSSL()
bool usingSSL() const
Are we using SSL?
KDE_DEPRECATED bool ConnectToHost(const TQString &host, unsigned int port, bool sendError)
KDE_DEPRECATED void CloseDescriptor()