cromp_security.h

Go to the documentation of this file.
00001 #ifndef CROMP_SECURITY_CLASS
00002 #define CROMP_SECURITY_CLASS
00003 
00004 /***
00005 *                                                                             *
00006 *  Name   : cromp_security
00007 *  Author : Chris Koeritz
00008 * Copyright (c) 2002-$now By Author.  This program is free software; you can  *
00009 * redistribute it and/or modify it under the terms of the GNU General Public  *
00010 * License as published by the Free Software Foundation; either version 2 of   *
00011 * the License or (at your option) any later version.  This is online at:      *
00012 *     http://www.fsf.org/copyleft/gpl.html                                    *
00013 * Please send any updates to: fred@gruntose.com                               *
00014 \*****************************************************************************/
00015 
00016 #include <basis/contracts.h>
00017 #include <tentacles/simple_entity_registry.h>
00018 #include <sockets/tcpip_stack.h>
00019 
00020 namespace cromp {
00021 
00023 
00027 class cromp_security : public octopi::simple_entity_registry
00028 {
00029 public:
00030   cromp_security();
00031   virtual ~cromp_security();
00032 
00033   DEFINE_CLASS_NAME("cromp_security");
00034 
00035   virtual bool add_entity(const octopi::octopus_entity &client,
00036         const basis::byte_array &verification);
00037 
00038   // stronger security models can be implemented by overriding add_entity().
00039   // this object merely verifies that we have seen the entity get issued
00040   // by the current server.
00041 
00042 private:
00043   sockets::tcpip_stack *_stack;  // enables access to tcpip functionality.
00044 };
00045 
00046 } //namespace.
00047 
00048 #endif
00049 
Generated on Sat Jan 28 04:22:42 2012 for hoople2 project by  doxygen 1.6.3