Added ConnectionInfo constructor for the default port.
diff --git a/ndn-cpp/transport/tcp-transport.hpp b/ndn-cpp/transport/tcp-transport.hpp
index 0dfa0a3..23d8200 100644
--- a/ndn-cpp/transport/tcp-transport.hpp
+++ b/ndn-cpp/transport/tcp-transport.hpp
@@ -29,6 +29,15 @@
: 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.