24#ifndef _TCP_SLAVEBASE_H
25#define _TCP_SLAVEBASE_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 TDE_DEPRECATED ssize_t
Write(
const void *data, ssize_t len) {
return write( data, len ); }
68 TDE_DEPRECATED ssize_t
Read(
void *data, ssize_t len) {
return read( data, len ); }
73 TDE_DEPRECATED ssize_t
ReadLine(
char *data, ssize_t len) {
return readLine( data, len ); }
78 TDE_DEPRECATED
unsigned short int GetPort(
unsigned short int p) {
return port(p); }
83 TDE_DEPRECATED
bool ConnectToHost(
const TQString &host,
unsigned int port,
84 bool sendError ) {
return connectToHost( host, port, sendError ); }
94 TDE_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;
There are two classes that specifies the protocol between application (job) and tdeioslave.
There are two classes that specifies the protocol between application (job) and tdeioslave.
bool usingSSL() const
Are we using SSL?
TDE_DEPRECATED ssize_t ReadLine(char *data, ssize_t len)
TDE_DEPRECATED void CloseDescriptor()
TDE_DEPRECATED void CleanSSL()
TDE_DEPRECATED bool InitializeSSL()
TDE_DEPRECATED bool ConnectToHost(const TQString &host, unsigned int port, bool sendError)
TDE_DEPRECATED unsigned short int GetPort(unsigned short int p)
TDE_DEPRECATED ssize_t Write(const void *data, ssize_t len)
TDE_DEPRECATED bool AtEOF()
TDE_DEPRECATED ssize_t Read(void *data, ssize_t len)
A namespace for TDEIO globals.