Use default parameters in constructors.
diff --git a/ndn-cpp/transport/udp-transport.hpp b/ndn-cpp/transport/udp-transport.hpp
index 06fbceb..80699d2 100644
--- a/ndn-cpp/transport/udp-transport.hpp
+++ b/ndn-cpp/transport/udp-transport.hpp
@@ -23,23 +23,14 @@
/**
* Create a ConnectionInfo with the given host and port.
* @param host The host for the connection.
- * @param port The port number for the connection.
+ * @param port The port number for the connection. If omitted, use 9695.
*/
- ConnectionInfo(const char *host, unsigned short port)
+ ConnectionInfo(const char *host, unsigned short port = 9695)
: host_(host), port_(port)
{
}
/**
- * Create a ConnectionInfo with the given host and default port 9695.
- * @param host The host for the connection.
- */
- ConnectionInfo(const char *host)
- : host_(host), port_(9695)
- {
- }
-
- /**
* Get the host given to the constructor.
* @return A string reference for the host.
*/