diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-17 12:13:36 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-21 18:25:00 (GMT) |
commit | 1b58ef2af54456004390a0888c3edf104e3baa99 (patch) | |
tree | dbe4ae29de1b765a88ea704dfaa1c03af4b196b3 /Swiften/Network/HostAddress.h | |
parent | 07402c4e3451f2084a1c3ddc5bacfb38a66899a7 (diff) | |
download | swift-contrib-1b58ef2af54456004390a0888c3edf104e3baa99.zip swift-contrib-1b58ef2af54456004390a0888c3edf104e3baa99.tar.bz2 |
Added beginnings of outgoing file transfer to Swiften.
Diffstat (limited to 'Swiften/Network/HostAddress.h')
-rw-r--r-- | Swiften/Network/HostAddress.h | 10 |
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_; }; } |