diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-04-21 08:26:54 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-04-21 08:26:54 -0500 |
commit | 2d729fbdf79e8f161159bd54ac88b2d7836738ac (patch) | |
tree | 852ba7aa8bf9479c6c0991baef0fa6bd1c0f30e2 /src/wallet/message_transporter.h | |
parent | Merge pull request #6278 (diff) | |
parent | Allow wallet2.h to run in WebAssembly (diff) | |
download | monero-2d729fbdf79e8f161159bd54ac88b2d7836738ac.tar.xz |
Merge pull request #6332
87d7558 Allow wallet2.h to run in WebAssembly (woodser)
Diffstat (limited to 'src/wallet/message_transporter.h')
-rw-r--r-- | src/wallet/message_transporter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/message_transporter.h b/src/wallet/message_transporter.h index 28c099d87..84a2e9bae 100644 --- a/src/wallet/message_transporter.h +++ b/src/wallet/message_transporter.h @@ -34,9 +34,9 @@ #include "cryptonote_basic/cryptonote_basic.h" #include "net/http_server_impl_base.h" #include "net/http_client.h" +#include "net/abstract_http_client.h" #include "common/util.h" #include "wipeable_string.h" -#include "serialization/keyvalue_serialization.h" #include <vector> namespace mms @@ -83,7 +83,7 @@ typedef epee::misc_utils::struct_init<transport_message_t> transport_message; class message_transporter { public: - message_transporter(); + message_transporter(std::unique_ptr<epee::net_utils::http::abstract_http_client> http_client); void set_options(const std::string &bitmessage_address, const epee::wipeable_string &bitmessage_login); bool send_message(const transport_message &message); bool receive_messages(const std::vector<std::string> &destination_transport_addresses, @@ -94,7 +94,7 @@ public: bool delete_transport_address(const std::string &transport_address); private: - epee::net_utils::http::http_simple_client m_http_client; + const std::unique_ptr<epee::net_utils::http::abstract_http_client> m_http_client; std::string m_bitmessage_url; epee::wipeable_string m_bitmessage_login; std::atomic<bool> m_run; |