std::map<unsigned, Host *> hosts;
std::map<unsigned, Host *> disabled_hosts;
std::list<Packet *> packets;
- std::map<unsigned, Port> ports;
+ std::map<unsigned, Port *> ports;
bool draw_labels;
bool blend;
unsigned frames;
float fps;
- Msp::Debug::Profiler profiler;
-
public:
NetVis(int, char **);
~NetVis();
const Msp::GL::Font &get_font() const { return *font; }
const std::map<unsigned, Host *> &get_hosts() const { return hosts; }
+ const std::map<unsigned, Port *> &get_ports() const { return ports; }
private:
virtual void tick();
+ void render();
Host &get_host(unsigned);
Msp::GL::Color generate_color(bool) const;
const Port &get_port(unsigned);