]> git.tdb.fi Git - netvis.git/blobdiff - source/host.h
Handle addresses in a more generic way
[netvis.git] / source / host.h
index c41610fd25d4b786420b8ee030d98340020fe851..928d7aaf79566ebebf5bdccae794fd5d1fff106a 100644 (file)
@@ -12,6 +12,7 @@ Distributed unter the GPL
 #include <string>
 #include <msp/time/timedelta.h>
 #include "activity.h"
+#include "address.h"
 #include "vector2.h"
 
 class NetVis;
@@ -20,7 +21,7 @@ class Host
 {
 private:
        NetVis &netvis;
-       unsigned addr;
+       Address addr;
        std::string name;
        std::string short_name;
        bool local;
@@ -30,8 +31,9 @@ private:
        float throttle;
 
 public:
-       Host(NetVis &, unsigned);
-       unsigned get_address() const { return addr; }
+       Host(NetVis &, const Address &);
+
+       const Address &get_address() const { return addr; }
        void set_name(const std::string &);
        const std::string &get_name() const { return name; }
        void set_local(bool);