ClientSSL Class Reference

Control SSL and TCP connections. More...

List of all members.

Signals

void info (const QString &)
void readFromHost (const Q3CString &)
void socketclosed ()
void socketconnected ()
void Socketerror ()
void UnreachableHost ()

Public Member Functions

 ClientSSL (QObject *parent=0)
void closeConnection ()
void Connect (const QString &d_host, Q_UINT16 d_port)
void sendToServer (const QString &inputText="")
virtual ~ClientSSL ()

Static Public Attributes

static int compteur_objet = 0

Private Slots

void connectToHost ()
void Exception ()
void ResolveName (QHostInfo host_info)
void socketClosed ()
void socketConnected ()
void socketReadyRead ()

Private Attributes

QString host
Q_UINT16 port
QSocketNotifier * sn_exception
QSocketNotifier * sn_read
Q3SocketDevice * socketdevice
SSL * ssl
SSL_CTX * ssl_ctx
bool SSL_init


Detailed Description

Control SSL and TCP connections.

Date:
2007-06-14
Version:
1.0
Author:
Daniel Rocher

Constructor & Destructor Documentation

ClientSSL::ClientSSL ( QObject *  parent = 0  ) 

ClientSSL::~ClientSSL (  )  [virtual]


Member Function Documentation

void ClientSSL::closeConnection (  ) 

Close Connection

void ClientSSL::Connect ( const QString &  d_host,
Q_UINT16  d_port 
)

Connect to Host

Parameters:
d_host host address or host name
d_port TCP port
See also:
ResolveName

connectToHost

void ClientSSL::connectToHost (  )  [private, slot]

Start connection

See also:
ResolveName

Connect

void ClientSSL::Exception (  )  [private, slot]

There is a TCP error

void ClientSSL::info ( const QString &  _t1  )  [signal]

void ClientSSL::readFromHost ( const Q3CString &  _t1  )  [signal]

void ClientSSL::ResolveName ( QHostInfo  host_info  )  [private, slot]

Result of the lookup

Parameters:
host_info object can then be inspected to get the results of the lookup

void ClientSSL::sendToServer ( const QString &  inputText = ""  ) 

Send datas to server

Parameters:
inputText datas to send
See also:
socketReadyRead

void ClientSSL::socketClosed (  )  [private, slot]

Connection closed

See also:
closeConnection

void ClientSSL::socketclosed (  )  [signal]

void ClientSSL::socketConnected (  )  [private, slot]

Socket connected. Run SSL

See also:
connectToHost

void ClientSSL::socketconnected (  )  [signal]

void ClientSSL::Socketerror (  )  [signal]

void ClientSSL::socketReadyRead (  )  [private, slot]

Receive datas from server

See also:
sendToServer

void ClientSSL::UnreachableHost (  )  [signal]


Member Data Documentation

int ClientSSL::compteur_objet = 0 [static]

QString ClientSSL::host [private]

Q_UINT16 ClientSSL::port [private]

QSocketNotifier* ClientSSL::sn_exception [private]

QSocketNotifier* ClientSSL::sn_read [private]

Q3SocketDevice* ClientSSL::socketdevice [private]

SSL* ClientSSL::ssl [private]

SSL_CTX* ClientSSL::ssl_ctx [private]

bool ClientSSL::SSL_init [private]


The documentation for this class was generated from the following files:
Generated on Fri Nov 2 21:44:59 2007 for qtsmbstatus.kdevelop by  doxygen 1.5.3