class Host;
class Packet;
+class Port;
class Resolver;
class NetVis: public Msp::Application
std::map<unsigned, Host *> hosts;
std::map<unsigned, Host *> disabled_hosts;
std::list<Packet *> packets;
- std::map<unsigned, Msp::GL::Color> port_colors;
+ std::map<unsigned, Port> ports;
bool draw_labels;
bool blend;
private:
virtual void tick();
Host &get_host(unsigned);
- Msp::GL::Color &get_port_color(unsigned);
+ Msp::GL::Color generate_color(bool) const;
+ const Port &get_port(unsigned);
void key_press(unsigned, unsigned, wchar_t);
static void capture_handler(unsigned char *, const pcap_pkthdr *, const unsigned char *);