您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

26 行
426 B

  1. #ifndef _SSLCLIENT_H_
  2. #define _SSLCLIENT_H_
  3. #include <boost/thread/thread.hpp>
  4. #include <openssl/ssl.h>
  5. #include "ssl_process.h"
  6. class Client : public SSLProcess
  7. {
  8. boost::thread* _sender;
  9. boost::thread* _receiver;
  10. int _handler;
  11. void receive();
  12. void renegotiate();
  13. public:
  14. Client()
  15. : SSLProcess(false){};
  16. void init();
  17. void connect();
  18. void start();
  19. };
  20. #endif /* _SSLCLIENT_H_ */