#include "recipients_handler.hh" #include /** * \author cpellegrino */ boost::asio::ip::tcp::endpoint make_endpoint(const std::string& address) { const size_t pos = address.find(":"); const std::string ip = address.substr(0, pos); const unsigned short port = boost::lexical_cast(address.substr(pos + 1)); return boost::asio::ip::tcp::endpoint( boost::asio::ip::address::from_string(ip), port); }