class TCPSlaveBase

There are two classes that specifies the protocol between application (job) and kioslave. More...

Full nameKIO::TCPSlaveBase
Definition#include <tcpslavebase.h>
InheritsKIO::SlaveBase [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

There are two classes that specifies the protocol between application (job) and kioslave. SlaveInterface is the class to use on the application end, SlaveBase is the one to use on the slave end.

Slave implementations should simply inherit SlaveBase

A call to foo() results in a call to slotFoo() on the other end.

 TCPSlaveBase (unsigned short int default_port, const QCString &protocol, const QCString &pool_socket, const QCString &app_socket)

 ~TCPSlaveBase ()

[virtual]

ssize_t  Write (const void *data, ssize_t len)

[protected: ]

ssize_t  Read (void *data, ssize_t len)

[protected: ]

ssize_t  ReadLine (char *data, ssize_t len)

[protected: ]

unsigned short int  GetPort (unsigned short int port)

[protected: ]

bool  ConnectToHost (const QCString &host, unsigned short int port)

[protected: ]

This does the initial TCP connection stuff and/or SSL handshaking

Parameters:
hosthostname
portport number

Returns: on succes, true is returned. on failure, false is returned and an appropriate error message is send to the application.

void  CloseDescriptor ()

[protected: ]

bool  InitializeSSL ()

[protected: ]

void  CleanSSL ()

[protected: ]

bool  AtEOF ()

[protected: ]

bool m_bIsSSL

[protected: ]

unsigned short int m_iDefaultPort

[protected: ]

unsigned short int m_iPort

[protected: ]

int m_iSock

[protected: ]

QCString m_sServiceName

[protected: ]

FILE * fp

[protected: ]

TcpSlaveBasePrivate * d

[protected: ]

SSL_CTX * ssl_context

[protected: ]

SSL * ssl

[protected: ]

X509 * server_cert

[protected: ]

SSL_METHOD * meth

[protected: ]


Generated by: marc@yogi on Tue Mar 27 13:07:59 2001, using kdoc 2.0a48.