mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
.apk builds. untested
This commit is contained in:
parent
28c2ca8bf8
commit
58b058ab3a
15 changed files with 314 additions and 10 deletions
|
@ -17,6 +17,12 @@
|
|||
#include "util.h"
|
||||
|
||||
|
||||
#ifdef ANDROID
|
||||
# include "to_string.h"
|
||||
#else
|
||||
# define to_string(x) std::to_string(x)
|
||||
#endif
|
||||
|
||||
namespace i2p
|
||||
{
|
||||
namespace data
|
||||
|
@ -373,7 +379,7 @@ namespace data
|
|||
boost::asio::io_service service;
|
||||
boost::system::error_code ecode;
|
||||
auto it = boost::asio::ip::tcp::resolver(service).resolve (
|
||||
boost::asio::ip::tcp::resolver::query (u.host_, std::to_string (u.port_)), ecode);
|
||||
boost::asio::ip::tcp::resolver::query (u.host_, to_string (u.port_)), ecode);
|
||||
if (!ecode)
|
||||
{
|
||||
boost::asio::ssl::context ctx(service, boost::asio::ssl::context::sslv23);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue