Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
transport::interface::ProducerSocket Class Reference
Inheritance diagram for transport::interface::ProducerSocket:
Inheritance graph
[legend]

Public Member Functions

 ProducerSocket (int protocol=ProductionProtocolAlgorithms::BYTE_STREAM)
 
 ProducerSocket (int protocol, asio::io_service &io_service)
 
void connect ()
 
bool isRunning ()
 
void registerPrefix (const Prefix &producer_namespace)
 
uint32_t produceStream (const Name &content_name, const uint8_t *buffer, size_t buffer_size, bool is_last=true, uint32_t start_offset=0)
 
uint32_t produceStream (const Name &content_name, std::unique_ptr< utils::MemBuf > &&buffer, bool is_last=true, uint32_t start_offset=0)
 
uint32_t produceDatagram (const Name &content_name, const uint8_t *buffer, size_t buffer_size)
 
uint32_t produceDatagram (const Name &content_name, std::unique_ptr< utils::MemBuf > &&buffer)
 
void asyncProduce (const Name &suffix, const uint8_t *buf, size_t buffer_size, bool is_last=true, uint32_t *start_offset=nullptr)
 
void asyncProduce (Name content_name, std::unique_ptr< utils::MemBuf > &&buffer, bool is_last, uint32_t offset, uint32_t **last_segment=nullptr)
 
void produce (ContentObject &content_object)
 
void serveForever ()
 
void stop ()
 
asio::io_service & getIoService ()
 
int setSocketOption (int socket_option_key, uint32_t socket_option_value)
 
int setSocketOption (int socket_option_key, std::nullptr_t socket_option_value)
 
int setSocketOption (int socket_option_key, bool socket_option_value)
 
int setSocketOption (int socket_option_key, Name *socket_option_value)
 
int setSocketOption (int socket_option_key, std::list< Prefix > socket_option_value)
 
int setSocketOption (int socket_option_key, ProducerContentObjectCallback socket_option_value)
 
int setSocketOption (int socket_option_key, ProducerInterestCallback socket_option_value)
 
int setSocketOption (int socket_option_key, ProducerContentCallback socket_option_value)
 
int setSocketOption (int socket_option_key, auth::CryptoHashType socket_option_value)
 
int setSocketOption (int socket_option_key, auth::CryptoSuite socket_option_value)
 
int setSocketOption (int socket_option_key, const std::shared_ptr< auth::Signer > &socket_option_value)
 
int setSocketOption (int socket_option_key, const std::string &socket_option_value)
 
int getSocketOption (int socket_option_key, uint32_t &socket_option_value)
 
int getSocketOption (int socket_option_key, bool &socket_option_value)
 
int getSocketOption (int socket_option_key, std::list< Prefix > &socket_option_value)
 
int getSocketOption (int socket_option_key, ProducerContentObjectCallback **socket_option_value)
 
int getSocketOption (int socket_option_key, ProducerContentCallback **socket_option_value)
 
int getSocketOption (int socket_option_key, ProducerInterestCallback **socket_option_value)
 
int getSocketOption (int socket_option_key, auth::CryptoHashType &socket_option_value)
 
int getSocketOption (int socket_option_key, auth::CryptoSuite &socket_option_value)
 
int getSocketOption (int socket_option_key, std::shared_ptr< auth::Signer > &socket_option_value)
 
int getSocketOption (int socket_option_key, std::string &socket_option_value)
 

Protected Member Functions

 ProducerSocket (bool)
 

Protected Attributes

std::unique_ptr< implementation::ProducerSocketsocket_
 

The documentation for this class was generated from the following file: