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 00058 #pragma once 00059 00060 #include "KjSslObject.h" 00061 #include "KjSslConnection.h" 00062 00067 class KjSslServer : public KjSslObject 00068 { 00069 BIO* m_pBioAccept; 00070 string m_strCertFile; 00071 string m_strKeyFile; 00072 bool m_bIsValid; 00073 public: 00074 KjSslServer(char *_strConn, const string &_strCertFile,const string &_strKeyFile); 00075 ~KjSslServer(); 00076 00077 KjSslConnection* NextClient(); 00078 void DeleteClient(KjSslConnection* _pCon); 00079 00082 bool GetIsValid() 00083 { 00084 return m_bIsValid; 00085 } 00086 };