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/c/transport/UdpTransport.h b/ndn-cpp/c/transport/UdpTransport.h index 262d5ec..ef113b2 100644 --- a/ndn-cpp/c/transport/UdpTransport.h +++ b/ndn-cpp/c/transport/UdpTransport.h
@@ -39,6 +39,11 @@ return ndn_SocketTransport_receive(&self->base, buffer, bufferLength, nBytes); } +static inline ndn_Error ndn_UdpTransport_close(struct ndn_UdpTransport *self) +{ + return ndn_SocketTransport_close(&self->base); +} + #ifdef __cplusplus } #endif