X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fhost.h;h=928d7aaf79566ebebf5bdccae794fd5d1fff106a;hb=c1ea3cf06729622e2287e1604b1847d14fd2089c;hp=c41610fd25d4b786420b8ee030d98340020fe851;hpb=597a794cd648dd7b4c9d442fdc39f5961a38aba0;p=netvis.git diff --git a/source/host.h b/source/host.h index c41610f..928d7aa 100644 --- a/source/host.h +++ b/source/host.h @@ -12,6 +12,7 @@ Distributed unter the GPL #include #include #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);