peerprotocol.h

00001 // --*-c++-*-- 00002 /* 00003 $Id: peerprotocol_8h-source.html,v 1.1 2004/10/05 21:12:02 mentat Exp $ 00004 00005 GNU Messenger - The secure instant messenger 00006 Copyright (C) 2001 Jesse Lovelace 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 00022 ----- 00023 $Log: peerprotocol.h,v $ 00024 Revision 1.1.1.1 2004/10/03 06:17:38 mentat 00025 Initial re-import. 00026 00027 Revision 1.2 2003/04/09 21:18:30 mentat 00028 Adding new headers and pruning old. 00029 00030 Revision 1.1 2003/04/05 23:12:28 mentat 00031 Moving headers to a new dir. 00032 00033 Revision 1.1 2003/03/02 16:19:05 mentat 00034 Importing new sources. 00035 00036 Revision 1.4 2002/06/28 18:37:33 mentat 00037 SF CVS merge. 00038 00039 Revision 1.1.1.1 2002/06/06 17:21:53 thementat 00040 Checkin of new sources BETA 2 00041 00042 Revision 1.3 2001/10/06 16:50:32 thementat 00043 Added GNU text. 00044 00045 */ 00046 00047 #ifndef PEER_PROTOCOL_H 00048 #define PEER_PROTOCOL_H 00049 00050 #include <map> 00051 #include <vector> 00052 #include "gm/protocol.h" 00053 00054 namespace GNUMessenger 00055 { 00056 00057 using namespace std; 00058 00059 class XMLNode; 00060 class NetworkServer; 00061 class Network; 00062 00066 class PeerProtocol: public Protocol 00067 { 00068 public: 00069 PeerProtocol(const XMLNode &,ProtocolManager *man, const string &name); 00070 virtual void handleIncoming(NetworkServer * srv, Network * newNet) = 0; 00071 00072 private: 00073 NetworkServer * m_server; 00074 00075 }; 00076 00077 } // !GNUMessenger 00078 00079 #endif

Generated on Tue Oct 5 14:41:47 2004 for GNU Messenger by doxygen 1.3.8