aboutsummaryrefslogtreecommitdiffstats
path: root/icnet/ccnx/icnet_ccnx_interest.h
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-06-05 16:48:29 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2017-06-05 17:45:15 +0200
commitd22d2b4785e2f4eafc8dda2ae032931f89c7e45f (patch)
tree47fa6879217c4b08e8a78efc33b8cd007a110866 /icnet/ccnx/icnet_ccnx_interest.h
parent52ab9bf241528b0cb1d24384d22b017391be2899 (diff)
- Added new interface between applications and library:
- Application retrieve resources using the common HTTP url format. - Translation between network names and application names performed by the library - Added basic error handling - Added utils for http connections - Added support for differetn build types (DEBUG, RELEASE, RELEASE with debug symbols, RELEASE with min size executable) - Added support for iOS Change-Id: I8ba2a5d8bd70a4f7721e1bbc2efe3fb81ed2c98c Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'icnet/ccnx/icnet_ccnx_interest.h')
-rw-r--r--icnet/ccnx/icnet_ccnx_interest.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/icnet/ccnx/icnet_ccnx_interest.h b/icnet/ccnx/icnet_ccnx_interest.h
index 2156b56f..47af3f68 100644
--- a/icnet/ccnx/icnet_ccnx_interest.h
+++ b/icnet/ccnx/icnet_ccnx_interest.h
@@ -17,14 +17,13 @@
#define ICNET_CCNX_INTEREST_H_
#include "icnet_ccnx_common.h"
+#include "icnet_utils_array.h"
+#include "icnet_ccnx_name.h"
extern "C" {
#include <ccnx/common/ccnx_Interest.h>
};
-//#include "interest.hpp"
-#include "icnet_ccnx_name.h"
-
namespace icnet {
namespace ccnx {
@@ -67,11 +66,13 @@ class Interest : public std::enable_shared_from_this<Interest> {
bool setPayload(const PARCBuffer *payload);
+ bool setPayload(const uint8_t *buffer, std::size_t size);
+
bool setPayloadAndId(const PARCBuffer *payload);
bool setPayloadWithId(const PARCBuffer *payload, const CCNxInterestPayloadId *payload_id);
- PARCBuffer *getPayload();
+ utils::Array getPayload() const;
void setHopLimit(uint32_t hop_limit);