summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Network/HostAddress.h')
-rw-r--r--Swiften/Network/HostAddress.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Swiften/Network/HostAddress.h b/Swiften/Network/HostAddress.h
index cf2db07..6e2bde0 100644
--- a/Swiften/Network/HostAddress.h
+++ b/Swiften/Network/HostAddress.h
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include <boost/asio.hpp>
namespace Swift {
class String;
@@ -17,10 +18,7 @@ namespace Swift {
HostAddress();
HostAddress(const String&);
HostAddress(const unsigned char* address, int length);
-
- const std::vector<unsigned char>& getRawAddress() const {
- return address_;
- }
+ HostAddress(const boost::asio::ip::address& address);
std::string toString() const;
@@ -28,7 +26,9 @@ namespace Swift {
return address_ == o.address_;
}
+ bool isValid() const;
+
private:
- std::vector<unsigned char> address_;
+ boost::asio::ip::address address_;
};
}