00001 /* Glass - a distributed computing library 00002 Copyright (C) 2003-2009 Bruno Barberi Gnecco 00003 Copyright (C) 2009-2010 Corollarium Technologies 00004 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Lesser General Public License for more details. 00015 00016 You should have received a copy of the GNU Lesser General Public 00017 License along with this library; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 #ifndef _GLASS_SERVER_PEER_HH_ 00022 #define _GLASS_SERVER_PEER_HH_ 00023 00024 #include "glassserver.h" 00025 00026 namespace libglass { 00027 00028 class Protocol; 00029 00033 class LIBGLASS_API GlassServerPeer : public GlassServer { 00034 00035 public: 00041 GlassServerPeer(Protocol *p) throw(Exception); 00042 ~GlassServerPeer(); 00043 00044 bool connect(const char *peer); 00045 }; 00046 00047 } // namespace 00048 00049 00050 #endif // _GLASS_SERVER_PEER_HH_