diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-03-14 19:46:43 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-03-14 19:52:25 +0100 |
commit | 7254a7d407c62d705ef410052825be74a6bd1b4e (patch) | |
tree | ea12cd3800d99d5b4f6fae1ce6e6e719243abb91 /libtransport/src/hicn/transport/interfaces/socket_producer.h | |
parent | 998977b643a700b2be5a1b476c03f90f517e9ffa (diff) |
[HICN-116] Added RTC producer option to hiperf.
Change-Id: I665b7dd3c8eae222d62057bc3387daf6c73df1f8
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/interfaces/socket_producer.h')
-rw-r--r-- | libtransport/src/hicn/transport/interfaces/socket_producer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/interfaces/socket_producer.h b/libtransport/src/hicn/transport/interfaces/socket_producer.h index d3738dc59..6ba5671cc 100644 --- a/libtransport/src/hicn/transport/interfaces/socket_producer.h +++ b/libtransport/src/hicn/transport/interfaces/socket_producer.h @@ -51,13 +51,19 @@ class ProducerSocket : public Socket<BasePortal>, void produce(ContentObject &content_object); + virtual void produce(const uint8_t *buffer, size_t buffer_size) { + // This API is meant to be used just with the RTC producer. + // Here it cannot be used since no name for the content is specified. + throw errors::NotImplementedException(); + } + void asyncProduce(const Name &suffix, const uint8_t *buf, size_t buffer_size); void asyncProduce(const Name &suffix, ContentBuffer &&output_buffer); void asyncProduce(ContentObject &content_object); - void registerPrefix(const Prefix &producer_namespace); + virtual void registerPrefix(const Prefix &producer_namespace); void serveForever(); |