Pass the NDN object to connect. Added TcpTransport::tempReceive()
diff --git a/ndn-cpp/transport/TcpTransport.hpp b/ndn-cpp/transport/TcpTransport.hpp
index a5d0ca8..c4fa1c6 100644
--- a/ndn-cpp/transport/TcpTransport.hpp
+++ b/ndn-cpp/transport/TcpTransport.hpp
@@ -16,16 +16,18 @@
TcpTransport()
{
ndn_TcpTransport_init(&transport_);
+ ndn_ = 0;
}
- virtual void connect(const char *host, unsigned short port);
+ virtual void connect(NDN &ndn);
virtual void send(unsigned char *data, unsigned int dataLength);
- virtual unsigned int receive(unsigned char *buffer, unsigned int bufferLength);
+ virtual void tempReceive();
private:
struct ndn_TcpTransport transport_;
+ NDN *ndn_;
};
}