Pass host and port to NDN constructor and Transport::connect
diff --git a/ndn-cpp/transport/TcpTransport.cpp b/ndn-cpp/transport/TcpTransport.cpp
index 7a3a190..c3abab6 100644
--- a/ndn-cpp/transport/TcpTransport.cpp
+++ b/ndn-cpp/transport/TcpTransport.cpp
@@ -10,10 +10,10 @@
namespace ndn {
-void TcpTransport::connect(char *host, unsigned short port)
+void TcpTransport::connect(const char *host, unsigned short port)
{
ndn_Error error;
- if (error = ndn_TcpTransport_connect(&transport_, host, port))
+ if (error = ndn_TcpTransport_connect(&transport_, (char *)host, port))
throw std::runtime_error(ndn_getErrorString(error));
}