In Transport, added getIsConnected
diff --git a/ndn-cpp/transport/tcp-transport.hpp b/ndn-cpp/transport/tcp-transport.hpp
index 1028def..4190600 100644
--- a/ndn-cpp/transport/tcp-transport.hpp
+++ b/ndn-cpp/transport/tcp-transport.hpp
@@ -15,7 +15,7 @@
class TcpTransport : public Transport {
public:
TcpTransport()
- : node_(0)
+ : node_(0), isConnected_(false)
{
ndn_TcpTransport_init(&transport_);
elementReader_.partialData.array = 0;
@@ -43,6 +43,8 @@
*/
virtual void processEvents();
+ virtual bool getIsConnected();
+
/**
* Close the connection to the host.
*/
@@ -52,6 +54,7 @@
private:
struct ndn_TcpTransport transport_;
+ bool isConnected_;
Node *node_;
// TODO: This belongs in the socket listener.
ndn_BinaryXmlElementReader elementReader_;