]> git.tdb.fi Git - netvis.git/blobdiff - source/netvis.h
Add a traffic history graph
[netvis.git] / source / netvis.h
index eb8c0a8e9d66fab276be8e6cd93687302a11db78..989e06054555e3da34bd6f0a4e775c52bd8b51f1 100644 (file)
@@ -20,6 +20,7 @@ Distributed unter the GPL
 #include <msp/gl/font.h>
 #include <msp/time/timestamp.h>
 
+class History;
 class Host;
 class Packet;
 class Port;
@@ -43,6 +44,7 @@ private:
        std::map<unsigned, Host *> disabled_hosts;
        std::list<Packet *> packets;
        std::map<unsigned, Port *> ports;
+       History *history;
 
        Msp::Time::TimeStamp tick_t;
        Msp::Time::TimeStamp fps_t;
@@ -62,6 +64,7 @@ private:
        Host &get_host(unsigned);
        Msp::GL::Color generate_color(bool) const;
        const Port &get_port(unsigned);
+       void create_history_texture();
 
        static void capture_handler(unsigned char *, const pcap_pkthdr *, const unsigned char *);