In Transport, added getIsConnected
diff --git a/ndn-cpp/transport/udp-transport.hpp b/ndn-cpp/transport/udp-transport.hpp
index ceeda72..76c3f36 100644
--- a/ndn-cpp/transport/udp-transport.hpp
+++ b/ndn-cpp/transport/udp-transport.hpp
@@ -15,7 +15,7 @@
class UdpTransport : public Transport {
public:
UdpTransport()
- : node_(0)
+ : node_(0), isConnected_(false)
{
ndn_UdpTransport_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_UdpTransport transport_;
+ bool isConnected_;
Node *node_;
// TODO: This belongs in the socket listener.
ndn_BinaryXmlElementReader elementReader_;