26 lines
426 B
C++
26 lines
426 B
C++
#ifndef _SSLCLIENT_H_
|
|
#define _SSLCLIENT_H_
|
|
#include <boost/thread/thread.hpp>
|
|
#include <openssl/ssl.h>
|
|
#include "ssl_process.h"
|
|
|
|
class Client : public SSLProcess
|
|
{
|
|
boost::thread* _sender;
|
|
boost::thread* _receiver;
|
|
int _handler;
|
|
|
|
void receive();
|
|
void renegotiate();
|
|
|
|
public:
|
|
Client()
|
|
: SSLProcess(false){};
|
|
|
|
void init();
|
|
void connect();
|
|
void start();
|
|
};
|
|
|
|
#endif /* _SSLCLIENT_H_ */
|