00001 00013 /*************************************************************************** 00014 * Copyright (C) 2007 by Jan Koci * 00015 * honza.koci@email.cz * 00016 * http://kengine.sourceforge.net/tutorial/ 00017 * * 00018 * This program is free software; you can redistribute it and/or modify * 00019 * it under the terms of the GNU General Public License as published by * 00020 * the Free Software Foundation; either version 2 of the License, or * 00021 * (at your option) any later version. * 00022 * * 00023 * This program is distributed in the hope that it will be useful, * 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00026 * GNU General Public License for more details. * 00027 * * 00028 * You should have received a copy of the GNU General Public License * 00029 * along with this program; if not, write to the * 00030 * Free Software Foundation, Inc., * 00031 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00032 ***************************************************************************/ 00033 00034 // Generate doxygen main page 00051 //Adding the argument -x509 to the openssl tool will generate a self-signed certificate: 00052 // openssl req -x509 -newkey rsa:1024 -keyout test.key -nodes -out test.crt 00053 // or 00054 // openssl req -x509 -newkey rsa:1024 -keyout test.key -nodes -days 365 -out test.crt 00055 00056 #include "../../KjSslSocket/KjSslConnection.h" 00057 #include "../../KjSslSocket/KjDefines.h" 00058 #include <csignal> 00059 #include "../../KjSslSocket/KjSignal.h" 00060 #include "../../KjSslSocket/KjTimer.h" 00061 00062 #define BIO_should_read(a) ((a)->flags & BIO_FLAGS_READ) 00063 #define BIO_should_write(a) ((a)->flags & BIO_FLAGS_WRITE) 00064 00073 class KjClient: public KjTimer 00074 { 00075 KjSslConnection *m_pCon; 00076 KjSignal *m_pSignal; 00077 00078 void DeleteEndMsg(string &_strMsg); 00079 public: 00080 KjClient(); 00081 ~KjClient(); 00082 00083 int Start(); 00084 }; 00085