face: Remove unnecessary use of DNS resolver in (Udp|Tcp|WebSocket)Factory
Change-Id: Idbc743fe4c7d567a09acccef98fe6de26f8295f0
Refs: #2422
diff --git a/daemon/face/udp-factory.hpp b/daemon/face/udp-factory.hpp
index db4760b..cfbd077 100644
--- a/daemon/face/udp-factory.hpp
+++ b/daemon/face/udp-factory.hpp
@@ -85,12 +85,10 @@
const time::seconds& timeout = time::seconds(600));
/**
- * \brief Create UDP-based channel using specified host and port number
+ * \brief Create UDP-based channel using specified IP address and port number
*
- * This method will attempt to resolve the provided host and port numbers
- * and will throw UdpFactory::Error when channel cannot be created.
- *
- * Note that this call will **BLOCK** until resolution is done or failed.
+ * This method is just a helper that converts a string representation of localIp and port to
+ * udp::Endpoint and calls the other createChannel overload.
*
* If localHost is a IPv6 address of a specific device, it must be in the form:
* ip address%interface name
@@ -101,7 +99,7 @@
* \throws UdpFactory::Error
*/
shared_ptr<UdpChannel>
- createChannel(const std::string& localHost,
+ createChannel(const std::string& localIp,
const std::string& localPort,
const time::seconds& timeout = time::seconds(600));