Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

detector.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                                  detector.h
00003                              -------------------
00004     begin                : Mon Feb 4 2002
00005     copyright            : (C) 2002 by Constantinos A. Kotsokalis
00006     email                : ckotso@grnet.gr
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef DETECTOR_H
00019 #define DETECTOR_H
00020 
00021 #include <cc++/thread.h>
00022 
00028 class Detector;
00029 
00030 #include "collector.h"
00031 #include "timeslot.h"
00032 #include "timestamp.h"
00033 #include "ifpair.h"
00034 #include "peerconnect.h"
00035 
00036 #include <string>
00037 #include <map>
00038 
00039 class Detector : public Thread  {
00040 public: 
00041     Detector(TimeSlot *, Collector *, float&, float&, string, string, Mutex *);
00042     virtual ~Detector();
00043     virtual void run();
00044 
00045 private:
00046     TimeSlot *procts;
00047     Mutex *mtx;
00048     float increase, percentage;
00049     Collector *cl;
00050     string owner, cmd;
00051 
00052     virtual void final();
00053     void LogAttackStart(uint16_t, uint16_t, InetHostAddress, InetHostAddress, uint32_t, uint32_t);
00054     void LogAttackStop(uint16_t, uint16_t, InetHostAddress, uint32_t, uint32_t);
00055 };
00056 
00057 #endif

Generated on Thu Jun 26 00:23:12 2003 for Panoptis by doxygen1.2.18