commit | 5796388f8129beb4fe97d69264203e0c9f72aada | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Mon Aug 05 16:01:25 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Mon Aug 05 16:01:25 2013 -0700 |
tree | 44262f1d7a30b38e1dc5792b81f234cd38b8b08c | |
parent | 5a6b5ab7f961fb77a7112d588b8edc03e60f623e [diff] [blame] |
Added Transport close method
diff --git a/ndn-cpp/transport/UdpTransport.cpp b/ndn-cpp/transport/UdpTransport.cpp index 52b62a5..5fc4a71 100644 --- a/ndn-cpp/transport/UdpTransport.cpp +++ b/ndn-cpp/transport/UdpTransport.cpp
@@ -51,4 +51,11 @@ } } +void UdpTransport::close() +{ + ndn_Error error; + if (error = ndn_UdpTransport_close(&transport_)) + throw std::runtime_error(ndn_getErrorString(error)); +} + }