Major update to rename NDN class to Face
diff --git a/ndn-cpp/transport/UdpTransport.cpp b/ndn-cpp/transport/UdpTransport.cpp
index 6fd47e4..52b62a5 100644
--- a/ndn-cpp/transport/UdpTransport.cpp
+++ b/ndn-cpp/transport/UdpTransport.cpp
@@ -4,7 +4,7 @@
*/
#include <stdexcept>
-#include "../NDN.hpp"
+#include "../face.hpp"
#include "../c/util/ndn_realloc.h"
#include "UdpTransport.hpp"
@@ -12,20 +12,20 @@
namespace ndn {
-void UdpTransport::connect(NDN &ndn)
+void UdpTransport::connect(Face &face)
{
ndn_Error error;
- if (error = ndn_UdpTransport_connect(&transport_, (char *)ndn.getHost(), ndn.getPort()))
+ if (error = ndn_UdpTransport_connect(&transport_, (char *)face.getHost(), face.getPort()))
throw std::runtime_error(ndn_getErrorString(error));
// TODO: This belongs in the socket listener.
const unsigned int initialLength = 1000;
// Automatically cast ndn_ to (struct ndn_ElementListener *)
ndn_BinaryXmlElementReader_init
- (&elementReader_, &ndn, (unsigned char *)malloc(initialLength), initialLength, ndn_realloc);
+ (&elementReader_, &face, (unsigned char *)malloc(initialLength), initialLength, ndn_realloc);
// TODO: Properly indicate connected status.
- ndn_ = &ndn;
+ face_ = &face;
}
void UdpTransport::send(const unsigned char *data, unsigned int dataLength)