commit | 517ffa8f25258eee01183bc936770d7012ad1adb | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Mon Aug 05 16:04:34 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Mon Aug 05 16:04:34 2013 -0700 |
tree | bfac4add5e7c4f9df56beebc1a5fe95ee8b6fc91 | |
parent | 5796388f8129beb4fe97d69264203e0c9f72aada [diff] [blame] |
Added shutdown method
diff --git a/ndn-cpp/face.cpp b/ndn-cpp/face.cpp index 4fa2325..d5c174b 100644 --- a/ndn-cpp/face.cpp +++ b/ndn-cpp/face.cpp
@@ -25,6 +25,11 @@ transport_->send(*encoding); } +void Face::shutdown() +{ + transport_->close(); +} + void Face::onReceivedElement(unsigned char *element, unsigned int elementLength) { BinaryXmlDecoder decoder(element, elementLength);