Signals | |
void | info (const QString &) |
void | readFromHost (const QByteArray &) |
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 |
ClientSSL::ClientSSL | ( | QObject * | parent = 0 |
) |
References compteur_objet, debugQt(), exit, ssl, ssl_ctx, SSL_init, and SSL_print_error().
ClientSSL::~ClientSSL | ( | ) | [virtual] |
References compteur_objet, debugQt(), socketClosed(), socketdevice, and ssl.
void ClientSSL::closeConnection | ( | ) |
Close Connection
References debugQt().
Referenced by ClientSocket::core(), ClientSocket::Disconnect(), Exception(), ClientSocket::slot_echo_timer(), and socketReadyRead().
void ClientSSL::Connect | ( | const QString & | d_host, | |
Q_UINT16 | d_port | |||
) |
Connect to Host
d_host | host address or host name | |
d_port | TCP port |
References debugQt(), host, port, and ResolveName().
Referenced by ClientSocket::connectionToServer().
void ClientSSL::connectToHost | ( | ) | [private, slot] |
Start connection
References debugQt(), host, info(), port, Socket_print_error(), socketConnected(), socketdevice, and UnreachableHost().
Referenced by ResolveName().
void ClientSSL::Exception | ( | ) | [private, slot] |
There is a TCP error
References closeConnection(), debugQt(), info(), Socket_print_error(), socketdevice, and Socketerror().
Referenced by socketConnected().
void ClientSSL::info | ( | const QString & | _t1 | ) | [signal] |
Referenced by connectToHost(), Exception(), socketClosed(), and socketConnected().
void ClientSSL::readFromHost | ( | const QByteArray & | ) | [signal] |
Referenced by socketReadyRead().
void ClientSSL::ResolveName | ( | QHostInfo | host_info | ) | [private, slot] |
Result of the lookup
host_info | object can then be inspected to get the results of the lookup |
References connectToHost(), debugQt(), and host.
Referenced by Connect().
void ClientSSL::sendToServer | ( | const QString & | inputText = "" |
) |
Send datas to server
inputText | datas to send |
References debugQt(), ssl, SSL_init, and SSL_print_error().
Referenced by ClientSocket::sendToServer().
void ClientSSL::socketClosed | ( | ) | [private, slot] |
Connection closed
References debugQt(), info(), and socketclosed().
Referenced by ~ClientSSL().
void ClientSSL::socketclosed | ( | ) | [signal] |
Referenced by socketClosed().
void ClientSSL::socketConnected | ( | ) | [private, slot] |
Socket connected. Run SSL
References debugQt(), Exception(), exit, info(), sn_exception, sn_read, socketconnected(), socketdevice, socketReadyRead(), ssl, SSL_init, and SSL_print_error().
Referenced by connectToHost().
void ClientSSL::socketconnected | ( | ) | [signal] |
Referenced by socketConnected().
void ClientSSL::Socketerror | ( | ) | [signal] |
Referenced by Exception().
void ClientSSL::socketReadyRead | ( | ) | [private, slot] |
Receive datas from server
References closeConnection(), debugQt(), readFromHost(), socketdevice, ssl, SSL_init, and SSL_print_error().
Referenced by socketConnected().
void ClientSSL::UnreachableHost | ( | ) | [signal] |
Referenced by connectToHost().
int ClientSSL::compteur_objet = 0 [static] |
Referenced by ClientSSL(), main(), and ~ClientSSL().
QString ClientSSL::host [private] |
Referenced by Connect(), connectToHost(), and ResolveName().
Q_UINT16 ClientSSL::port [private] |
Referenced by Connect(), and connectToHost().
QSocketNotifier* ClientSSL::sn_exception [private] |
Referenced by socketConnected().
QSocketNotifier* ClientSSL::sn_read [private] |
Referenced by socketConnected().
Q3SocketDevice* ClientSSL::socketdevice [private] |
Referenced by connectToHost(), Exception(), socketConnected(), socketReadyRead(), and ~ClientSSL().
SSL* ClientSSL::ssl [private] |
Referenced by ClientSSL(), sendToServer(), socketConnected(), socketReadyRead(), and ~ClientSSL().
SSL_CTX* ClientSSL::ssl_ctx [private] |
Referenced by ClientSSL().
bool ClientSSL::SSL_init [private] |
Referenced by ClientSSL(), sendToServer(), socketConnected(), and socketReadyRead().